body {
  display: flex;
}


/* ─── LAYOUT DEUX COLONNES ─── */
.auth-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ─── PANNEAU GAUCHE (Navy) ─── */
.auth-panel {
  background: var(--navy);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 110% 20%, rgba(26,107,189,.20) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at -10% 80%, rgba(244,124,32,.10) 0%, transparent 60%);
}
.auth-panel-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }

.auth-logo {
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: -.4px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 2px;
  margin-bottom: 56px;
}
.auth-logo span { color: var(--orange); }

.auth-panel-title {
  font-size: 30px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; line-height: 1.2;
  margin-bottom: 16px;
}
.auth-panel-title em { color: var(--orange); font-style: normal; }
.auth-panel-sub {
  font-size: 14px; color: #7fadd4;
  line-height: 1.7; max-width: 300px;
  margin-bottom: 48px;
}

.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature {
  display: flex; align-items: flex-start; gap: 12px;
}
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-feature-icon .material-symbols-outlined { font-size: 18px; color: var(--orange); }
.auth-feature-text strong { font-size: 13px; font-weight: 700; color: #fff; display: block; margin-bottom: 2px; }
.auth-feature-text span  { font-size: 12px; color: #7fadd4; line-height: 1.5; }

.auth-panel-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.auth-panel-footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #4a7da8;
}

/* ─── PANNEAU DROIT (Formulaire) ─── */
.auth-form-area {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}
.auth-form-box {
  width: 100%; max-width: 420px;
}

.auth-form-header { margin-bottom: 36px; }
.auth-form-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--light); border: 1px solid #c8dff5;
  border-radius: var(--r-xl); padding: 4px 12px 4px 8px;
  margin-bottom: 16px;
}
.auth-form-tag .material-symbols-outlined { font-size: 14px; color: var(--orange); }
.auth-form-tag span { font-size: 11px; font-weight: 600; color: var(--blue); }
.auth-form-title {
  font-size: 26px; font-weight: 800; color: var(--navy);
  letter-spacing: -.4px; margin-bottom: 6px;
}
.auth-form-sub { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ─── FORMULAIRE ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 700; color: var(--navy);
  letter-spacing: .3px; margin-bottom: 7px;
}
.form-label .req { color: var(--orange); margin-left: 3px; }
.form-input-wrap { position: relative; }
.form-input-icon {
  position: absolute; top: 50%; left: 12px;
  transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  display: flex; align-items: center;
}
.form-input-icon .material-symbols-outlined { font-size: 18px; }
.form-control {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px 11px 40px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control.no-icon { padding-left: 14px; }
.form-control::placeholder { color: #adb8c5; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,107,189,.12); }
.form-control.is-error { border-color: var(--red); }
.form-control.is-error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
.form-control.is-valid { border-color: var(--green); }

.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.form-error-msg {
  font-size: 11px; color: var(--red); margin-top: 5px;
  display: flex; align-items: center; gap: 4px;
}
.form-error-msg .material-symbols-outlined { font-size: 13px; }

/* Bouton toggle password */
.btn-pw-toggle {
  position: absolute; top: 50%; right: 12px;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); display: flex; align-items: center;
  padding: 2px;
  transition: color .15s;
}
.btn-pw-toggle:hover { color: var(--text); }
.btn-pw-toggle .material-symbols-outlined { font-size: 18px; }
.form-control.has-toggle { padding-right: 42px; }

/* ─── BOUTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all .15s; text-decoration: none;
  white-space: nowrap;
}
.btn .material-symbols-outlined { font-size: 17px; }
.btn-primary { background: var(--orange); color: #fff; width: 100%; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-outline {
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--border); width: 100%;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky); }

/* ─── UTILITAIRES ─── */
.form-footer-link {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--muted);
}
.form-footer-link a {
  color: var(--blue); font-weight: 600; text-decoration: none;
}
.form-footer-link a:hover { text-decoration: underline; }

.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--muted); font-size: 12px;
}
.form-divider::before,
.form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.remember-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; border-radius: 4px;
  accent-color: var(--orange); cursor: pointer;
}
.forgot-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* Alert banner */
.alert-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid; font-size: 13px; line-height: 1.5;
  margin-bottom: 24px;
}
.alert-banner .material-symbols-outlined { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-banner.is-error   { background: var(--red-bg);   border-color: #fca5a5; color: var(--red); }
.alert-banner.is-success { background: var(--green-bg); border-color: #86efac; color: var(--green); }
.alert-banner.is-info    { background: var(--light);    border-color: #c8dff5; color: var(--blue); }
.alert-banner { display: none; }
.alert-banner.visible { display: flex; }

/* Loader spinner */
.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-strength-bar {
  height: 4px; border-radius: 2px; background: var(--border);
  overflow: hidden; margin-bottom: 4px;
}
.pw-strength-fill {
  height: 100%; border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0%;
}
.pw-strength-label { font-size: 11px; color: var(--muted); }

/* Steps (reset password) */
.reset-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 36px;
}
.step-node {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.step-node.active { color: var(--navy); }
.step-node.done   { color: var(--green); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  transition: all .2s;
}
.step-node.active .step-circle {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.step-node.done .step-circle {
  background: var(--green); border-color: var(--green); color: #fff;
}
.step-node.done .step-circle .material-symbols-outlined { font-size: 14px; }
.step-connector {
  flex: 1; height: 1px; background: var(--border); margin: 0 8px;
  min-width: 24px;
}
.step-connector.done { background: var(--green); }

/* Responsive */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-panel  { display: none; }
  .auth-form-area { padding: 32px 24px; }
}
