/* ════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════ */
:root {
  --blue-deep: #0a1628;
  --blue-mid: #0d2045;
  --blue-accent: #0f3460;
  --cyan: #ff7a1a;
  --cyan-dim: rgba(255, 122, 26, 0.10);
  --cyan-glow: rgba(255, 122, 26, 0.30);
  --white: #ffffff;
  --white-80: rgba(255, 255, 255, 0.80);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-04: rgba(255, 255, 255, 0.04);
  --anthracite: #1a2332;
  --steel: #7a7268;
  --card-bg: rgba(13, 32, 69, 0.65);
  --glass-border: rgba(255, 255, 255, 0.10);
  --success: #22c55e;
  --error: #f87171;
  --warning: #fbbf24;
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.45);
  --shadow-cyan: 0 0 50px rgba(255, 122, 26, 0.15);
  --radius: 16px;
  --radius-lg: 24px;

  /* Couleurs de fond (pour le toggle) */
  --bg-main: var(--blue-deep);
  --bg-header: rgba(10, 22, 40, 0.70);
  --text-main: var(--white);
  --blue-sky:    #4db6ff;
}

/* ── LIGHT MODE ── */
:root.light {
  --blue-deep: #fff8f2;
  --blue-mid: #fdeedd;
  --blue-accent: #fbe2cc;

  --white: #1c1410;
  --white-80: rgba(28, 20, 16, 0.80);
  --white-60: rgba(28, 20, 16, 0.60);
  --white-40: rgba(28, 20, 16, 0.40);
  --white-20: rgba(28, 20, 16, 0.16);
  --white-10: rgba(28, 20, 16, 0.08);
  --white-06: rgba(28, 20, 16, 0.05);
  --white-04: rgba(28, 20, 16, 0.035);

  --steel: #7a6a5c;
  --card-bg: rgba(255, 248, 242, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);

  --shadow-lg: 0 32px 80px rgba(28, 20, 16, 0.12);
  --shadow-cyan: 0 0 50px rgba(255, 122, 26, 0.12);

  --bg-main: var(--blue-deep);
  --bg-header: rgba(255, 248, 242, 0.85);
  --text-main: var(--white);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  transition: all .2s ease;
  flex-shrink: 0;
  font-size: 1rem;
}

.theme-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-main);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background .3s, color .3s;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

/* ── NOISE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ── AMBIENT GRID ── */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── AMBIENT ORBS ── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.07) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 92, 0, 0.06) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.04) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 18s ease-in-out infinite;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(20px, -20px);
  }

  66% {
    transform: translate(-15px, 15px);
  }
}

/* ════ HEADER MINIMAL ════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 64px;
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s, border-color .3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.logo-icon {
  width: 120px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.logo-icon span {
  display: block;
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(10, 22, 40, 0.9);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.logo-text {
  /* font-family: 'Syne', sans-serif; */
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--cyan);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text span {
  color: var(--cyan);
}

.logo-slogan {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--blue-sky);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-60);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all .2s ease;
}

.header-link:hover {
  color: var(--white);
  background: var(--white-06);
}

.header-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--white-80);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ════ MAIN LAYOUT ════ */
.page-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 10;
}

/* ════ LEFT PANEL ════ */
.panel-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 64px 60px 80px;
  overflow: hidden;
}

.panel-left-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 20% 40%, rgba(255, 122, 26, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(224, 92, 0, 0.07) 0%, transparent 60%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  border-right: 1px solid var(--glass-border);
}

.schematic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
}

.panel-left-content {
  position: relative;
  z-index: 5;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(62, 136, 247, 0.2);
  border-radius: 100px;
  background: rgba(0, 99, 229, 0.07);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin-bottom: 28px;
  animation: fadeInUp .8s ease both;
}

.tag-dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(1.4);
  }
}

h1.panel-title {
  /* font-family: 'Syne', sans-serif; */
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp .8s .1s ease both;
}

h1.panel-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), #ffb066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-desc {
  font-size: .95rem;
  color: var(--white-60);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 4px;
  animation: fadeInUp .8s .2s ease both;
}

/* KPI strip */
.kpi-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
  animation: fadeInUp .8s .3s ease both;
}

.kpi-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all .2s ease;
}

.kpi-row:hover {
  border-color: rgba(255, 122, 26, .25);
  background: var(--cyan-dim);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(0, 99, 229, 0.07);
  border: 1px solid rgba(62, 136, 247, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-info {
  flex: 1;
}

.kpi-label {
  font-size: .72rem;
  color: var(--steel);
  font-weight: 500;
}

.kpi-val {
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}

.kpi-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(34, 197, 94, .12);
  color: var(--success);
}

.badge-blue {
  background: rgba(0, 99, 229, 0.07);
  color: var(--blue-sky);
}

.badge-cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* Certification row */
.cert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeInUp .8s .4s ease both;
}

.cert-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--white-04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--white-60);
}

.cert-chip svg {
  flex-shrink: 0;
}

/* Mini dashboard */
.mini-dash {
  position: absolute;
  bottom: 40px;
  right: 48px;
  width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(20px);
  animation: float 5s ease-in-out infinite;
}

.mini-dash::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.mini-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mini-dash-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  color: var(--cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mini-live {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .62rem;
  color: var(--success);
}

.mini-live-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}

.mini-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(255, 122, 26, .25));
}

/* ════ RIGHT PANEL ════ */
.panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 80px 60px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  position: relative;
}

/* Tab switcher */
.auth-tabs {
  display: flex;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 32px;
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--white-60);
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  z-index: 2;
  letter-spacing: .01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-tab.active {
  color: var(--white);
}

.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 122, 26, .15), rgba(224, 92, 0, .1));
  border: 1px solid rgba(255, 122, 26, .25);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
  box-shadow: 0 0 20px rgba(255, 122, 26, .1);
}

/* Form panels */
.form-panel {
  display: none;
  animation: fadeInUp .4s ease both;
}

.form-panel.active {
  display: block;
}

/* Form header */
.form-header {
  margin-bottom: 28px;
}

.form-greeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2.form-title {
  /* font-family: 'Syne', sans-serif; */
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}

.form-sub {
  font-size: .82rem;
  color: var(--steel);
  line-height: 1.6;
}

.form-sub a {
  color: var(--cyan);
  text-decoration: none;
}

.form-sub a:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.divider-text {
  font-size: .72rem;
  color: var(--steel);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Field group */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field-wrap {
  flex: 1;
}

.field-wrap {
  position: relative;
}

.field-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--white-60);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 7px;
  transition: color .2s ease;
}

.field-wrap:focus-within .field-label {
  color: var(--cyan);
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--steel);
  pointer-events: none;
  transition: color .2s ease;
  display: flex;
  align-items: center;
}

.field-wrap:focus-within .field-icon {
  color: var(--cyan);
}

.field-input {
  width: 100%;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--white);
  outline: none;
  transition: all .25s ease;
  caret-color: var(--cyan);
}

.field-input::placeholder {
  color: var(--white-40);
}

.field-input:focus {
  border-color: rgba(255, 122, 26, .5);
  background: rgba(255, 122, 26, .05);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .08), 0 0 20px rgba(255, 122, 26, .05);
}

.field-input.error {
  border-color: rgba(248, 113, 113, .5);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .08);
}

.field-input.success {
  border-color: rgba(34, 197, 94, .4);
}

/* Password toggle */
.field-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--steel);
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color .2s;
}

.field-toggle:hover {
  color: var(--white-80);
}

/* Password strength */
.pwd-strength {
  margin-top: 8px;
}

.pwd-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.pwd-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--white-10);
  transition: background .3s ease;
}

.pwd-bar.weak {
  background: var(--error);
}

.pwd-bar.medium {
  background: var(--warning);
}

.pwd-bar.strong {
  background: var(--success);
}

.pwd-label {
  font-size: .68rem;
  color: var(--steel);
}

/* Field hint */
.field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: .7rem;
  color: var(--steel);
}

.field-hint.error-hint {
  color: var(--error);
}

.field-hint.success-hint {
  color: var(--success);
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

input[type="checkbox"].ci-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.checkbox-text {
  font-size: .78rem;
  color: var(--white-60);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--cyan);
  text-decoration: none;
}

/* Forgot link */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 20px;
}

.forgot-link {
  font-size: .75rem;
  color: var(--steel);
  text-decoration: none;
  transition: color .2s;
}

.forgot-link:hover {
  color: var(--cyan);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan) 0%, #e05c00 100%);
  color: #1c1410;
  font-family: 'Manrope', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 30px rgba(255, 122, 26, .3), 0 8px 24px rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 122, 26, .45), 0 12px 30px rgba(0, 0, 0, .4);
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit svg {
  flex-shrink: 0;
}

/* Back button */
.btn-back {
  flex: .4;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--white-06);
  color: var(--white-60);
  font-family: 'Manrope', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-back:hover {
  color: var(--white);
  border-color: var(--white-20);
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .btn-submit {
  flex: 1;
  margin-bottom: 0;
}

/* Loading spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(28, 20, 16, .3);
  border-top-color: #1c1410;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner {
  display: block;
}

.btn-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Legal */
.form-legal {
  font-size: .7rem;
  color: var(--steel);
  text-align: center;
  line-height: 1.6;
}

.form-legal a {
  color: var(--cyan);
  text-decoration: none;
}

/* Alert messages */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: .82rem;
  line-height: 1.5;
}

.alert.error {
  background: rgba(248, 113, 113, .08);
  border: 1px solid rgba(248, 113, 113, .25);
  color: var(--error);
}

.alert.success {
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25);
  color: var(--success);
}

/* Step progress */
.step-progress {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--white-06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--steel);
  transition: all .3s ease;
  flex-shrink: 0;
}

.step-item.active .step-circle {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 14px rgba(255, 122, 26, .2);
}

.step-item.done .step-circle {
  border-color: var(--success);
  background: rgba(34, 197, 94, .12);
  color: var(--success);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
  transition: background .3s ease;
  align-self: center;
  margin-bottom: 16px;
}

.step-line.done {
  background: rgba(34, 197, 94, .3);
}

.step-label {
  font-size: .65rem;
  color: var(--steel);
  font-weight: 500;
  text-align: center;
  margin-top: 4px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Step panels */
.reg-step {
  display: none;
  animation: fadeInUp .4s ease both;
}

.reg-step.active {
  display: block;
}

/* Service chips */
.service-chip {
  padding: 7px 14px;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--white-60);
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.service-chip:hover {
  color: var(--white);
  border-color: var(--white-20);
}

.service-chip.selected {
  background: var(--cyan-dim);
  border-color: rgba(255, 122, 26, .4);
  color: var(--cyan);
}

/* Select */
select.field-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7268' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.field-input option {
  background: var(--blue-mid);
  color: var(--white);
}

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 24px 0;
  animation: fadeInUp .5s ease both;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(34, 197, 94, .15);
  animation: successPop .5s cubic-bezier(.175, .885, .32, 1.275) both;
}

@keyframes successPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.success-desc {
  font-size: .85rem;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Security badge */
.security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.security-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  color: var(--steel);
  font-weight: 500;
}

.security-item svg {
  color: var(--cyan);
}

/* Floating status toast */
.status-card {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 18px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120px);
  opacity: 0;
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
  min-width: 260px;
}

.status-card.show {
  transform: translateY(0);
  opacity: 1;
}

.status-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-card-icon.s-success {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .2);
}

.status-card-icon.s-error {
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .2);
}

.status-card-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
}

.status-card-desc {
  font-size: .72rem;
  color: var(--steel);
}

/* Forgot password modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 10, 20, .85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  transform: scale(.9) translateY(20px);
  transition: all .35s cubic-bezier(.175, .885, .32, 1.275);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border-radius: 24px 24px 0 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  color: var(--steel);
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.modal-close:hover {
  color: var(--white);
  background: var(--white-10);
}

.modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  background: rgba(0, 99, 229, 0.07);
  border: 1px solid rgba(62, 136, 247, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  /* font-family: 'Syne', sans-serif; */
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.modal-desc {
  font-size: .82rem;
  color: var(--steel);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width:960px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .panel-left {
    display: none;
  }

  .panel-right {
    padding: 90px 32px 48px;
  }

  header {
    padding: 8px 24px;
  }

  .mini-dash {
    display: none;
  }
}

@media (max-width:640px) {
  header {
    padding: 8px 16px;
    gap: 8px;
  }

  .logo {
    gap: 8px;
  }

  .logo-icon {
    width: 60px;
    /* height: 36px; */
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .logo-slogan {
    display: none;
  }

  .header-link {
    display: none;
  }

  .header-btn {
    padding: 7px 12px;
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }
}

@media (max-width:480px) {
  .panel-right {
    padding: 80px 20px 40px;
  }

  .field-row {
    flex-direction: column;
  }

  .auth-card {
    max-width: 100%;
  }

  header {
    padding: 8px 12px;
  }

  .logo-text-group {
    max-width: 140px;
  }

  .header-right {
    gap: 6px;
  }
}
/* ── THEME TRANSITION (smooth switch) ── */
.kpi-row,
.cert-chip,
.mini-dash,
.auth-tabs,
.field-input,
.service-chip,
.step-circle,
.status-card,
.modal-box,
.btn-back,
header {
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}

/* ── LIGHT MODE OVERRIDES ── */
:root.light body::before { opacity: .15; }

:root.light .grid-bg {
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.04) 1px, transparent 1px);
}

:root.light .panel-left-bg {
  background:
    radial-gradient(ellipse 80% 70% at 20% 40%, rgba(255, 122, 26, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(224, 92, 0, 0.06) 0%, transparent 60%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
}

:root.light select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a6a5c' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
}

:root.light .field-input:focus {
  background: rgba(255, 122, 26, .05);
}

:root.light .modal-overlay {
  background: rgba(28, 20, 16, .35);
}

:root.light .logo-icon span {
  border-color: rgba(255, 248, 242, 0.9);
}

/* ════════════════════════════════════════════════
   RESET PASSWORD — missing classes
════════════════════════════════════════════════ */

/* Panel right inner container */
.panel-right-container {
  width: 100%;
  max-width: 440px;
}

/* Form header h2 / p (reset page uses bare h2 & p, not .form-title/.form-sub) */
.panel-right-container .form-header {
  margin-bottom: 28px;
}

.panel-right-container .form-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}

.panel-right-container .form-header p {
  font-size: .82rem;
  color: var(--steel);
  line-height: 1.6;
}

/* panel-description (left panel) */
.panel-description {
  font-size: .95rem;
  color: var(--white-60);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 4px;
  animation: fadeInUp .8s .2s ease both;
}

/* Alert variants used in reset_password */
.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: .82rem;
  line-height: 1.5;
  background: rgba(248, 113, 113, .08);
  border: 1px solid rgba(248, 113, 113, .25);
  color: var(--error);
}

.alert-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: .82rem;
  line-height: 1.5;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25);
  color: var(--success);
}

.alert-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-list {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}

/* Vertical form group wrapper */
.form-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* Individual form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Label */
.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--white-60);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 7px;
  transition: color .2s ease;
}

.label-text {
  /* just the text portion */
}

.label-required {
  color: var(--cyan);
  font-size: .8rem;
  line-height: 1;
}

/* Input wrapper (icon + input) */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* The actual input — mirrors .field-input */
.form-control {
  width: 100%;
  background: var(--white-06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 42px 13px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--white);
  outline: none;
  transition: all .25s ease;
  caret-color: var(--cyan);
}

.form-control::placeholder {
  color: var(--white-40);
}

.form-control:focus {
  border-color: rgba(255, 122, 26, .5);
  background: rgba(255, 122, 26, .05);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .08), 0 0 20px rgba(255, 122, 26, .05);
}

.form-control.is-invalid {
  border-color: rgba(248, 113, 113, .5);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, .08);
}

/* Icon inside input wrapper (right-aligned) */
.input-icon {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--steel);
  pointer-events: none;
  flex-shrink: 0;
}

/* Error / hint text below input */
.form-error {
  font-size: .72rem;
  color: var(--error);
  margin-top: 5px;
  display: block;
}

.form-hint {
  font-size: .72rem;
  color: var(--steel);
  margin-top: 6px;
  line-height: 1.6;
  display: block;
}

/* Primary block button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
  padding: 14px 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #e05c00 100%);
  color: #1c1410;
  box-shadow: 0 0 30px rgba(255, 122, 26, .3), 0 8px 24px rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 122, 26, .45), 0 12px 30px rgba(0, 0, 0, .4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.btn-text {
  flex: 1;
  text-align: center;
}

.btn-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Footer link row */
.form-footer {
  text-align: center;
  margin-top: 20px;
}

.form-footer p {
  font-size: .78rem;
  color: var(--steel);
}

.link-primary {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.link-primary:hover {
  text-decoration: underline;
}

/* Light mode tweaks for new classes */
:root.light .form-control {
  background: var(--white-06);
  color: var(--white);
}

:root.light .form-control:focus {
  background: rgba(255, 122, 26, .05);
}