/* =========================================================================
   Objectif Leads — Back-office : feuille de style de référence (refonte UI)
   Aucune dépendance (pas de Bootstrap/Tailwind). Polices : Inter + Manrope.
   ========================================================================= */

:root {
  /* Couleurs */
  --navy-950: #0B1626;   /* barre latérale, panneau connexion */
  --navy-900: #13233B;   /* boutons principaux, pastilles d'étape */
  --navy-800: #1E3354;   /* survol bouton principal */
  --navy-700: #1C2B44;   /* séparateurs sur fond navy */
  --navy-300: #9DB2D6;   /* « Leads », textes clairs sur navy */
  --navy-200: #B5C2D6;   /* liens du menu */
  --navy-muted: #8B9BB4; /* libellés secondaires sur navy */

  --bg: #F5F6F8;         /* fond de page */
  --surface: #FFFFFF;    /* cartes */
  --surface-2: #FAFBFC;  /* en-têtes de tableau, pieds de carte */
  --soft: #F1F4F9;       /* fonds d'icônes */
  --avatar: #E9EEF6;

  --border: #E5E8EE;
  --border-soft: #EEF0F4;
  --border-input: #D7DCE4;

  --text: #0F1A2A;
  --text-2: #4A5568;
  --text-3: #667085;
  --placeholder: #8A94A6;

  --link: #3557A0;
  --focus-ring: rgba(53, 87, 160, .12);

  --success: #1B6B43;  --success-bg: #E8F3EC;
  --neutral: #4A5568;  --neutral-bg: #F1F3F6;
  --danger: #B42318;   --danger-bg: #FDF0EF;

  /* Typo */
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Manrope, Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rayons */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy-900); }
h1, h2, h3, p { margin: 0; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Icônes SVG en trait (style Lucide) */
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: #fff; color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-mark .dot { fill: currentColor; stroke: none; }
.brand-name { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; color: #fff; }
.brand-name b { font-weight: 800; }
.brand-name span { font-weight: 600; color: var(--navy-300); }
.brand--lg .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand--lg .brand-mark .icon { width: 22px; height: 22px; }
.brand--lg .brand-name { font-size: 20px; }

/* ---------- Mise en page app (menu latéral + contenu) ---------- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar {
  flex: 1 1 248px; max-width: 248px; min-width: 220px;
  background: var(--navy-950);
  display: flex; flex-direction: column; gap: 32px;
  padding: 24px 16px;
}
.sidebar .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { margin: 0 0 8px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--navy-muted); }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--navy-200); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.is-active, .nav-link[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; }
.nav-link.is-disabled { color: var(--navy-muted); opacity: .55; cursor: not-allowed; }
.nav-link.is-disabled:hover { background: transparent; color: var(--navy-muted); }
.nav-disabled-note { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }

.sidebar-user {
  margin-top: auto; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 12px 8px 0; border-top: 1px solid var(--navy-700);
}
.sidebar-user .avatar { background: var(--navy-700); color: #DCE4F0; }
.sidebar-user-name { font-size: 14px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { font-size: 12px; color: var(--navy-muted); }
.sidebar-user-info { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.sidebar-user-actions { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.sidebar-icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  color: var(--navy-muted); display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
}
.sidebar-icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.main { flex: 999 1 560px; min-width: 0; padding: 40px 48px 56px; }
.container { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 720px) {
  .sidebar { max-width: none; flex-basis: 100%; gap: 16px; }
  .main { padding: 24px 16px 40px; }
}

/* ---------- En-tête de page ---------- */
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.breadcrumb { margin-bottom: 8px; font-size: 13px; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 6px; }
.page-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.page-subtitle { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 9px;
  font: 600 14px var(--font); cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border-input); color: #1F2A3C; font-weight: 500; }
.btn-secondary:hover { background: var(--bg); color: var(--text); }
.btn-ghost-danger { background: transparent; color: var(--danger); font-weight: 500; height: 34px; padding: 0 12px; font-size: 13px; }
.btn-ghost-danger:hover { background: var(--danger-bg); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { height: 46px; border-radius: var(--r-md); font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--border); color: var(--text-3); border-color: transparent; cursor: not-allowed; }
.btn:focus-visible, .icon-btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- Comptes administrateurs ---------- */
.account-card { max-width: 680px; }
.account-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.account-password-form { display: grid; gap: 18px; }
.account-actions { justify-content: flex-end; margin: 4px 0 0; padding: 0; }
.admin-create-card { margin-bottom: 20px; }
.admin-create-card .card-title { margin-bottom: 6px; }
.admin-create-form { display: grid; gap: 18px; margin-top: 18px; }
.admin-list-card .table { min-width: 680px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 0; background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--soft); color: var(--navy-900); }
.icon-btn.is-danger:hover { background: var(--danger-bg); color: var(--danger); }
.icon-btn[data-tooltip] { position: relative; }
.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; z-index: 20; right: 0; top: calc(100% + 8px);
  width: max-content; max-width: 220px; padding: 6px 8px; border-radius: 6px;
  background: var(--navy-950); color: #fff; font: 500 12px/1.3 var(--font);
  opacity: 0; pointer-events: none; transform: translateY(-2px);
  transition: opacity .15s, transform .15s;
}
.icon-btn[data-tooltip]:hover::after, .icon-btn[data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(0); }

/* ---------- Champs ---------- */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 500; color: #1F2A3C; }
.help { font-size: 13px; color: var(--text-3); }
.input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--border-input); border-radius: 9px; background: #fff;
  font: 400 14px var(--font); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-lg { height: 46px; padding: 0 14px; font-size: 15px; border-radius: var(--r-md); }
.input:focus { border-color: var(--link); box-shadow: 0 0 0 4px var(--focus-ring); }
.input::placeholder { color: var(--placeholder); }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 12px; top: 12px; color: var(--placeholder); }
.input-wrap > .input.has-icon { padding-left: 36px; }
.input-wrap > .input-action {
  position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px;
  border: 0; background: transparent; border-radius: var(--r-sm);
  font: 500 13px var(--font); color: var(--text-2); cursor: pointer;
}
.input-wrap > .input-action:hover { color: var(--text); }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-900); cursor: pointer; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.card-body { padding: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.card-title { font-size: 16px; font-weight: 600; }
.card-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; }
.card-note { padding: 14px 24px; font-size: 13px; line-height: 1.5; color: var(--text-2); background: var(--surface-2); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.kpi-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; color: var(--text-2); }
.kpi-head .icon { color: var(--placeholder); }
.kpi-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-success { background: var(--success); }
.dot-neutral { background: #A0A8B6; }

/* Grilles de 2 colonnes */
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.split > * { flex: 1 1 380px; }
.split-aside { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split-aside > .split-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-aside > .split-side { flex: 1 1 280px; }

/* Liste d'actions */
.action-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; color: var(--text); border-bottom: 1px solid var(--border-soft); transition: background .15s; }
.action-row:last-child { border-bottom: 0; }
.action-row:hover { background: #F7F8FA; color: var(--text); }
.action-row > .icon:last-child { color: var(--placeholder); }
.icon-tile { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--soft); color: var(--navy-900); display: flex; align-items: center; justify-content: center; flex: none; }
.action-title { display: block; font-size: 15px; font-weight: 500; }
.action-desc { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); }

/* État vide */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px 32px; }
.empty-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.empty-title { font-size: 15px; font-weight: 500; }
.empty-text { max-width: 300px; font-size: 13px; line-height: 1.55; color: var(--text-3); }

/* ---------- Onglets segmentés ---------- */
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--neutral-bg); border-radius: var(--r-md); }
.segmented a, .segmented button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent;
  font: 500 13px var(--font); color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.segmented a:hover, .segmented button:hover { color: var(--text); }
.segmented .is-active, .segmented [aria-selected="true"], .segmented [aria-current="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.segmented .count { color: var(--text-3); }

/* ---------- Tableau ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 500; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border-soft); }
.table td { padding: 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .align-right { text-align: right; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.mono { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }

.user-cell { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--avatar); color: var(--navy-900); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.user-name { font-weight: 500; }
.user-login { font-size: 13px; color: var(--text-3); }
.user-history-trigger { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.user-history-trigger:hover .user-name { color: var(--link); }
.user-history-trigger:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 4px; }

.balance { font-variant-numeric: tabular-nums; }
.balance b { font-weight: 600; }
.balance span { color: var(--text-3); }
.progress { margin-top: 6px; width: 96px; height: 4px; border-radius: 4px; background: var(--border-soft); overflow: hidden; }
.progress > div { height: 100%; border-radius: 4px; background: var(--link); }

.row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.row-actions .btn { margin-right: 6px; }

/* Badges d'état */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge-neutral::before { background: #8A94A6; }
.badge-plain::before { display: none; }
.badge-xs { height: 20px; padding: 0 8px; font-size: 11px; }

/* ---------- Fenêtre modale (utiliser <dialog>) ---------- */
dialog.modal { border: 0; padding: 0; width: min(420px, calc(100% - 32px)); border-radius: var(--r-xl); box-shadow: 0 24px 48px rgba(11,22,38,.18); color: var(--text); }
dialog.modal-wide { width: min(560px, calc(100% - 32px)); }
dialog.modal-history { width: min(980px, calc(100% - 32px)); }
dialog.modal::backdrop { background: rgba(11,22,38,.45); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 24px 0; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-sub { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.modal-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; background: var(--surface-2); border-top: 1px solid var(--border-soft); }
.dump-assignment-list { display: flex; flex-direction: column; gap: 8px; }
.dump-assignment-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--surface-2); }
.dump-assignment-name { min-width: 0; overflow-wrap: anywhere; }
.dump-unassign-form { flex: none; }
.password-editor { display: flex; align-items: center; gap: 6px; }
.password-editor .input { flex: 1; min-width: 0; }
.password-editor .input[readonly] { background: var(--surface-2); color: var(--text-2); }
.history-inline-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.history-inline-filters .input { flex: 1 1 150px; min-width: 130px; }
.user-history-table { min-width: 820px; }
.assign-all-active { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-md); font-size: 14px; font-weight: 500; cursor: pointer; }
.assign-operator-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.assign-operator-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; }
.assign-operator-row:hover, .assign-operator-row:focus-within { background: var(--surface-2); border-color: var(--border-soft); }
.assign-operator-row.is-assigned { background: var(--success-bg); }
.assign-operator-row.is-inactive { color: var(--text-3); cursor: not-allowed; }
.assign-operator-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Affectation : étapes, dépôt, liste d'opérateurs ---------- */
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 36px 24px; border: 1.5px dashed #C9D0DB; border-radius: 12px;
  background: var(--surface-2); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--link); background: #F7F9FC; }
.dropzone:focus-within { border-color: var(--link); box-shadow: 0 0 0 4px var(--focus-ring); }
.dropzone-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--navy-900); display: flex; align-items: center; justify-content: center; }
.dropzone-title { font-size: 15px; font-weight: 500; }
.dropzone-title span { color: var(--link); }
.file-chip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.file-chip-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-status { font-size: 13px; color: var(--success); }

.op-row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: background .15s; }
.op-row:hover { background: var(--surface-2); }
.op-row.is-inactive .user-name { color: var(--text-2); }
.op-info { flex: 1; min-width: 0; }
.op-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.op-id { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.op-balance { text-align: right; }
.op-balance b { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.op-balance span { font-size: 12px; color: var(--text-3); }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--text-2); }
.summary dd { margin: 0; font-weight: 500; text-align: right; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border-soft); }

/* ---------- Page de connexion ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-panel {
  flex: 1 1 480px; max-width: 620px; min-height: 420px;
  background: var(--navy-950); color: #fff;
  padding: 48px 56px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-panel > * { position: relative; }
.auth-rings { position: absolute; right: -170px; bottom: -150px; width: 520px; height: 520px; opacity: .5; pointer-events: none; }
.auth-eyebrow { margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--navy-300); }
.auth-headline { font-family: var(--font-display); font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.auth-lead { margin-top: 20px; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--navy-200); }
.auth-copy { font-size: 13px; color: var(--navy-muted); }
.auth-main { flex: 999 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.auth-sub { margin: 8px 0 32px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.auth-fields { display: flex; flex-direction: column; gap: 20px; }
.auth-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.alert-error { padding: 12px 14px; border-radius: var(--r-md); background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.alert-success { padding: 12px 14px; border-radius: var(--r-md); background: var(--success-bg); color: var(--success); font-size: 14px; }
@media (max-width: 720px) {
  .auth-panel { padding: 32px 24px; min-height: 0; gap: 32px; }
  .auth-headline { font-size: 30px; }
}
