/* pro.biznc.nc — feuille de style de l'espace connecté. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-v20-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --ink: #101418;
  --text: #181a16;
  --text-soft: #4a4d45;
  --line: rgba(24, 26, 22, 0.12);
  --surface-soft: #f5f6ee;
  --danger: #a12a2a;
  --success: #1f6b37;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.pro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
}
.pro-top img { display: block; height: 28px; width: auto; }
.pro-top a { color: #fff; font-size: 0.9rem; }

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 20px 72px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.auth-card h1,
.auth-card h2 { color: var(--ink); }
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.auth-card h1:focus { outline: none; }
.auth-lead {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.auth-btn:disabled { opacity: 0.55; cursor: progress; }
.auth-btn:focus-visible,
.auth-link:focus-visible,
.auth-field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.auth-btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.auth-btn--danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}
.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 26, 22, 0.35);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.auth-field input[aria-invalid="true"] { border-color: var(--danger); }
.auth-legal {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}
.auth-legal a,
.auth-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.auth-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.auth-status[data-tone="error"] { color: var(--danger); }
.auth-status[data-tone="success"] { color: var(--success); }
.auth-meta {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.auth-meta strong { word-break: break-all; }
.auth-danger-zone {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-danger-zone h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
}
.auth-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
.visually-hidden-frame {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
}
