/* =====================================================================
   COMPCONNEX — Login Page Premium Styles
   Deep Court Palette + South African Legal Theme
   ===================================================================== */

:root {
  --bg-deep:       #080E1A;
  --bg-base:       #0D1526;
  --bg-surface:    #111D35;
  --bg-elevated:   #162040;
  --bg-card:       #1A2647;
  --gold:          #C9A84C;
  --gold-light:    #E2C87A;
  --gold-muted:    #8A6F35;
  --gold-glow:     rgba(201,168,76,0.15);
  --gold-glow-lg:  rgba(201,168,76,0.08);
  --text-primary:  #EFF2F8;
  --text-secondary:#8A96B0;
  --text-muted:    #8290A8;
  --border:        rgba(201,168,76,0.15);
  --border-light:  rgba(255,255,255,0.06);
  --success:       #2ECC71;
  --danger:        #E74C3C;
  --radius:        14px;
  --font-legal:    'Cinzel', serif;
  --font-ui:       'Inter', sans-serif;
  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html, body {
  min-height: 100vh;
  font-family: var(--font-ui);
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

/* =====================================================================
   ANIMATED BACKGROUND
   ===================================================================== */
.bg-orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,95,168,0.06), transparent 70%);
  bottom: -200px; right: -100px;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.05), transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}

.bg-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.login-wrapper {
  position: relative; z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* =====================================================================
   LEFT BRAND PANEL
   ===================================================================== */
.login-brand {
  width: 480px;
  min-width: 480px;
  background: linear-gradient(160deg, #0D1526 0%, #111D35 50%, #0D1526 100%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

/* Gold vertical line accent */
.login-brand::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

/* Top glow */
.login-brand::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px; right: -80px;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.brand-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.brand-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-muted));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  color: var(--bg-deep);
  margin-bottom: 24px;
  box-shadow: 0 0 40px rgba(201,168,76,0.3);
}

.brand-name {
  font-family: var(--font-legal);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.brand-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.brand-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-glow);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.brand-feature-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.sa-flag { font-size: 18px; }

/* =====================================================================
   RIGHT FORM PANEL
   ===================================================================== */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.login-form-inner {
  width: 100%;
  max-width: 420px;
}

.mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-family: var(--font-legal);
  font-size: 22px;
  color: var(--gold);
}

.mobile-logo i { font-size: 28px; }

/* =====================================================================
   STEP CONTAINERS
   ===================================================================== */
.login-step {
  animation: step-in 0.35s ease forwards;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-header { margin-bottom: 32px; }

.btn-back {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
  transition: var(--transition);
  font-family: var(--font-ui);
}
.btn-back:hover { color: var(--gold); }

.step-title {
  font-family: var(--font-legal);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-subtitle strong { color: var(--gold); }

/* =====================================================================
   FORM ELEMENTS
   ===================================================================== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-label i { color: var(--gold); }

.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}

.btn-back:focus-visible,
.btn-login:focus-visible,
.btn-resend:focus-visible,
.form-input:focus-visible,
.otp-box:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* =====================================================================
   LOGIN BUTTON
   ===================================================================== */
.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-muted));
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-loader { animation: spin 0.8s linear infinite; display: inline-flex; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   OTP BOXES
   ===================================================================== */
.otp-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

.otp-box {
  width: 52px; height: 60px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  transition: var(--transition);
  outline: none;
  caret-color: transparent;
}

.otp-box:focus {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
  transform: scale(1.05);
}

.otp-box.filled {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.otp-dash {
  color: var(--text-muted);
  font-size: 20px;
  margin: 0 2px;
}

/* =====================================================================
   OTP TIMER
   ===================================================================== */
.otp-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.otp-timer i { color: var(--gold); }

#otp-countdown {
  font-weight: 700;
  color: var(--text-primary);
  font-family: monospace;
}

#otp-countdown.urgent { color: var(--danger); }

/* =====================================================================
   RESEND BUTTON
   ===================================================================== */
.btn-resend {
  width: 100%;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-resend:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-resend:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =====================================================================
   ERROR MESSAGE
   ===================================================================== */
.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #E74C3C;
  margin-top: 16px;
  animation: step-in 0.25s ease;
}

.login-help {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

.login-help i { color: var(--gold); }

/* =====================================================================
   SUCCESS ANIMATION
   ===================================================================== */
.success-animation {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.success-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(46,204,113,0.15);
  border: 2px solid rgba(46,204,113,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  color: var(--success);
  animation: success-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes success-pop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  html, body { overflow: auto; }
  .login-brand { display: none; }
  .mobile-logo { display: flex; }
  .login-form-panel { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .otp-box { width: 42px; height: 52px; font-size: 20px; }
  .step-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Professional sign-in experience */
:root {
  --login-ink: #080f1c;
  --login-panel: #0c1524;
  --login-line: rgba(179, 194, 216, 0.12);
  --login-copy: #aab6c8;
  --login-gold: #d6b66a;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--login-ink);
}

body {
  background:
    radial-gradient(ellipse at 82% 14%, rgba(32, 71, 112, 0.18), transparent 34rem),
    radial-gradient(ellipse at 74% 88%, rgba(173, 132, 54, 0.08), transparent 32rem),
    var(--login-ink);
}

.bg-orbs {
  opacity: 0.55;
}

.bg-pattern {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(196, 209, 229, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 209, 229, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
}

.login-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
}

.login-brand {
  position: relative;
  width: min(48%, 720px);
  min-width: 430px;
  justify-content: flex-end;
  padding: clamp(36px, 6vw, 88px);
  background:
    radial-gradient(ellipse at 18% 18%, rgba(214, 182, 106, 0.12), transparent 42%),
    linear-gradient(145deg, #101c2c 0%, #0c1726 55%, #0a1422 100%);
  border-right: 1px solid var(--login-line);
}

.login-brand::before {
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 62%, rgba(214, 182, 106, 0.035)),
    radial-gradient(ellipse at 24% 18%, rgba(214, 182, 106, 0.12), transparent 58%);
}

.login-brand::after {
  top: 12%;
  bottom: 12%;
  background: linear-gradient(180deg, transparent, rgba(214, 182, 106, 0.5), transparent);
}

.brand-content {
  max-width: 510px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 236, 184, 0.35);
  border-radius: 16px;
  background: linear-gradient(145deg, #eed99c, #c19a49);
  color: #172131;
  font-size: 27px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 32px rgba(214, 182, 106, 0.15);
}

.brand-eyebrow,
.form-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--login-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1.5;
}

.brand-eyebrow {
  margin-bottom: 14px;
}

.brand-name {
  margin-bottom: 12px;
  color: #f3f5f8;
  font-family: var(--font-ui);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -1.9px;
  line-height: 1.08;
}

.brand-tagline {
  max-width: 430px;
  margin-bottom: 12px;
  color: #f0f3f8;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 550;
  letter-spacing: -0.65px;
  line-height: 1.34;
}

.brand-description {
  max-width: 410px;
  margin-bottom: 36px;
  color: var(--login-copy);
  font-size: 14px;
  line-height: 1.75;
}

.brand-features {
  gap: 11px;
  margin-bottom: 36px;
}

.brand-feature {
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(210, 221, 237, 0.075);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.brand-feature:hover {
  transform: translateX(3px);
  border-color: rgba(214, 182, 106, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

.brand-feature-icon {
  width: 38px;
  height: 38px;
  border-color: rgba(214, 182, 106, 0.2);
  border-radius: 11px;
  background: rgba(214, 182, 106, 0.09);
  color: var(--login-gold);
}

.brand-feature-title {
  margin-bottom: 3px;
  font-size: 13px;
}

.brand-feature-desc {
  color: var(--login-copy);
  font-size: 11.5px;
  line-height: 1.55;
}

.brand-footer {
  gap: 10px;
  padding-top: 20px;
  border-color: var(--login-line);
  color: #8998ad;
  font-size: 11px;
}

.brand-footer-mark {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--login-line);
  border-radius: 50%;
  color: var(--login-gold);
}

.login-form-panel {
  min-width: 0;
  padding: clamp(24px, 5vw, 72px);
  background: rgba(8, 15, 28, 0.32);
}

.login-form-inner {
  max-width: 440px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(190, 204, 225, 0.11);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 29, 47, 0.96), rgba(12, 22, 36, 0.97));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.035);
}

.step-header {
  margin-bottom: 30px;
}

.form-eyebrow {
  margin-bottom: 16px;
  color: #b6c1d0;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.form-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68c59a;
  box-shadow: 0 0 12px rgba(104, 197, 154, 0.45);
}

.step-title {
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.2;
}

.step-subtitle {
  max-width: 360px;
  color: var(--login-copy);
  font-size: 14px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  margin-bottom: 9px;
  color: #d7deea;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-input-wrap {
  position: relative;
}

.form-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: #8998ad;
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}

.form-input {
  min-height: 52px;
  padding: 14px 15px 14px 44px;
  border: 1px solid rgba(183, 199, 222, 0.17);
  border-radius: 10px;
  background: rgba(5, 12, 23, 0.64);
  font-size: 14px;
}

.form-input:focus {
  border-color: rgba(214, 182, 106, 0.75);
  background: rgba(5, 12, 23, 0.9);
  box-shadow: 0 0 0 4px rgba(214, 182, 106, 0.1);
}

.form-input-wrap:focus-within > i {
  color: var(--login-gold);
}

.form-hint {
  margin-top: 8px;
  color: #94a2b6;
  font-size: 11.5px;
  line-height: 1.55;
}

.btn-login {
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid rgba(250, 231, 180, 0.45);
  border-radius: 10px;
  background: linear-gradient(110deg, #e1c77f, #c8a556);
  box-shadow: 0 10px 24px rgba(177, 137, 57, 0.16);
  color: #172131;
}

.btn-login:hover {
  background: linear-gradient(110deg, #edd996, #d5b568);
  box-shadow: 0 12px 28px rgba(177, 137, 57, 0.25);
}

.login-help {
  align-items: flex-start;
  margin-top: 18px;
  color: #9aa8bb;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: left;
}

.login-help i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #75c4a0;
}

.login-access-note {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--login-line);
  color: #8998ad;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.btn-back {
  min-height: 40px;
}

.btn-resend {
  min-height: 46px;
  border-color: rgba(183, 199, 222, 0.16);
}

.login-error {
  line-height: 1.55;
}

@media (max-width: 960px) {
  .login-brand {
    width: 43%;
    min-width: 340px;
    padding: 36px;
  }

  .login-form-panel {
    padding: 28px;
  }

  .login-form-inner {
    padding: 34px;
  }

  .brand-tagline {
    font-size: 22px;
  }

  .brand-features {
    gap: 9px;
  }

  .brand-feature {
    padding: 11px;
  }
}

@media (max-width: 760px) {
  .login-wrapper {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .login-brand {
    display: none;
  }

  .login-form-panel {
    flex: 0 1 480px;
    justify-content: center;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .login-form-inner {
    max-width: 480px;
    padding: clamp(26px, 7vw, 42px);
  }

  .mobile-logo {
    display: flex;
    margin-bottom: 34px;
    color: #f0f3f8;
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.35px;
  }

  .mobile-logo i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(214, 182, 106, 0.35);
    border-radius: 11px;
    background: rgba(214, 182, 106, 0.12);
    color: var(--login-gold);
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 16px;
  }

  .login-form-inner {
    padding: 25px 21px;
    border-radius: 16px;
  }

  .mobile-logo {
    margin-bottom: 30px;
  }

  .step-header {
    margin-bottom: 26px;
  }

  .step-title {
    font-size: 27px;
  }

  .otp-boxes {
    gap: clamp(4px, 2vw, 8px);
  }

  .otp-box {
    width: clamp(36px, 11vw, 48px);
    height: 52px;
    font-size: 20px;
  }

  .otp-dash {
    margin: 0;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .login-brand {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 28px;
    overflow-y: auto;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    font-size: 24px;
  }

  .brand-tagline {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .brand-description {
    margin-bottom: 20px;
  }

  .brand-features {
    gap: 7px;
    margin-bottom: 20px;
  }

  .brand-feature {
    padding: 9px;
  }

  .brand-footer {
    padding-top: 14px;
  }

  .login-form-panel {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-feature {
    transition: none;
  }
}

/* Final visual polish for the sign-in experience */
.login-brand {
  background:
    radial-gradient(ellipse at 18% 18%, rgba(214, 182, 106, 0.1), transparent 42%),
    linear-gradient(145deg, #111e30 0%, #0c1726 55%, #091321 100%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.brand-logo {
  flex: 0 0 54px;
  margin: 0;
  border-radius: 15px;
}

.brand-identity {
  min-width: 0;
}

.brand-eyebrow {
  margin-bottom: 5px;
  color: #b7c1ce;
  font-size: 9px;
  letter-spacing: 1.65px;
}

.brand-name {
  margin: 0;
  font-size: 31px;
  letter-spacing: -1.15px;
}

.brand-tagline {
  max-width: 400px;
  margin-bottom: 11px;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.22;
}

.brand-description {
  max-width: 390px;
  margin-bottom: 30px;
  font-size: 13.5px;
}

.brand-features {
  gap: 8px;
}

.brand-feature {
  padding: 12px 13px;
  border-color: rgba(210, 221, 237, 0.065);
  background: rgba(255, 255, 255, 0.022);
}

.brand-feature-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.login-form-panel {
  background:
    radial-gradient(ellipse at 52% 48%, rgba(27, 47, 72, 0.2), transparent 34rem),
    rgba(8, 15, 28, 0.28);
}

.login-form-inner {
  position: relative;
  overflow: hidden;
  border-color: rgba(190, 204, 225, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 29, 47, 0.98), rgba(11, 20, 33, 0.99));
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.045);
}

.login-form-inner::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 182, 106, 0.88), transparent);
  content: '';
}

.form-eyebrow {
  color: #bdc7d5;
  font-size: 9px;
  letter-spacing: 1.65px;
}

.form-eyebrow span {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 10px rgba(104, 197, 154, 0.35);
}

.step-title {
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -1.2px;
}

.step-subtitle {
  max-width: 340px;
  font-size: 13.5px;
}

.form-input {
  min-height: 54px;
  border-color: rgba(183, 199, 222, 0.2);
}

.btn-login {
  min-height: 54px;
  letter-spacing: 0.1px;
}

.login-help {
  font-size: 11px;
}

.login-access-note {
  margin-top: 21px;
  padding-top: 17px;
  font-size: 11px;
}

@media (max-width: 960px) {
  .brand-lockup {
    gap: 12px;
    margin-bottom: 30px;
  }

  .brand-logo {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    margin: 0;
    font-size: 23px;
  }

  .brand-name {
    font-size: 27px;
  }

  .brand-eyebrow {
    font-size: 8px;
    letter-spacing: 1.25px;
  }

  .brand-tagline {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .login-form-inner {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.045);
  }
}

@media (max-width: 480px) {
  .login-form-inner {
    border-radius: 15px;
  }

  .step-title {
    font-size: 28px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .brand-lockup {
    margin-bottom: 22px;
  }

  .brand-logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-tagline {
    font-size: 23px;
  }
}

/* Restore the original split-panel login layout with the expanded copy. */
html,
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  background-image: none;
}

.bg-orbs {
  opacity: 1;
}

.bg-pattern {
  opacity: 1;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: none;
}

.login-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
}

.login-brand {
  width: 480px;
  min-width: 480px;
  justify-content: center;
  padding: 60px 48px;
  background: linear-gradient(160deg, #0d1526 0%, #111d35 50%, #0d1526 100%);
  border-right: 1px solid var(--border);
}

.login-brand::after {
  top: 15%;
  bottom: 15%;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.login-brand::before {
  top: -80px;
  left: -80px;
  right: -80px;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.1) 0%, transparent 65%);
}

.brand-content {
  width: 100%;
  max-width: none;
}

.brand-logo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0 0 24px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-muted));
  color: var(--bg-deep);
  font-size: 36px;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.brand-name {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-legal);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-tagline {
  max-width: none;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.brand-description {
  max-width: none;
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.brand-features {
  gap: 20px;
  margin-bottom: 28px;
}

.brand-feature {
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}

.brand-feature:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
}

.brand-feature-icon {
  width: 40px;
  height: 40px;
  border-color: var(--border);
  border-radius: 10px;
  background: var(--gold-glow);
  font-size: 18px;
  color: var(--gold);
}

.brand-feature-title {
  margin-bottom: 3px;
  font-size: 13px;
}

.brand-feature-desc {
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.5;
}

.brand-footer {
  gap: 8px;
  padding-top: 24px;
  border-color: var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
}

.sa-flag {
  font-size: 18px;
}

.login-form-panel {
  min-width: 0;
  padding: 48px 32px;
  background: transparent;
}

.login-form-inner {
  position: static;
  width: 100%;
  max-width: 420px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-form-inner::before {
  display: none;
}

.mobile-logo {
  display: none;
}

.step-header {
  margin-bottom: 32px;
}

.form-eyebrow {
  display: none;
}

.step-title {
  margin-bottom: 8px;
  font-family: var(--font-legal);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.step-subtitle {
  max-width: none;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-label i {
  color: var(--gold);
}

.form-input {
  min-height: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
  font-size: 15px;
}

.form-input:focus {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.form-hint {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.btn-login {
  min-height: 0;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-muted));
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.3);
  color: var(--bg-deep);
  letter-spacing: 0.3px;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

.login-help {
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}

.login-help i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--gold);
}

@media (min-width: 901px) and (max-width: 1100px) {
  .login-brand {
    width: 42%;
    min-width: 360px;
    padding: 40px 32px;
  }

  .login-form-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .login-brand {
    display: none;
  }

  .mobile-logo {
    display: flex;
    margin-bottom: 40px;
    color: var(--gold);
    font-family: var(--font-legal);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .mobile-logo i {
    display: inline;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gold);
    font-size: 28px;
  }

  .login-form-panel {
    padding: 40px 24px;
    background: transparent;
  }

  .login-form-inner {
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .otp-box {
    width: 42px;
    height: 52px;
    font-size: 20px;
  }

  .step-title {
    font-size: 22px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-brand {
    padding: 28px 40px;
  }

  .brand-logo {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    font-size: 30px;
  }

  .brand-name {
    margin-bottom: 6px;
    font-size: 28px;
  }

  .brand-tagline {
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .brand-description {
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .brand-features {
    gap: 12px;
    margin-bottom: 18px;
  }

  .brand-feature-icon {
    width: 34px;
    height: 34px;
  }

  .brand-footer {
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .login-form-panel {
    padding: 24px 20px;
  }

  .mobile-logo {
    margin-bottom: 20px;
  }

  .step-header {
    margin-bottom: 20px;
  }

  .step-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-input {
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .btn-login {
    min-height: 48px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .login-help {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .login-form-panel {
    padding: 16px 14px;
  }

  .mobile-logo {
    margin-bottom: 14px;
  }

  .step-header {
    margin-bottom: 16px;
  }

  .form-hint {
    margin-top: 4px;
    font-size: 11px;
  }

  .otp-box {
    width: 38px;
    height: 48px;
  }
}

.login-form-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding-bottom: 10px;
}

.login-form-inner {
  max-width: 440px;
}

.step-header {
  margin-bottom: 36px;
}

.step-title {
  margin-bottom: 12px;
  font-size: 28px;
}

.step-subtitle {
  font-size: 15px;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 24px;
}

.form-input {
  padding-top: 16px;
  padding-bottom: 16px;
}

.btn-login {
  padding-top: 18px;
  padding-bottom: 18px;
}

.login-help {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.65;
}

.login-page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 7px;
  row-gap: 2px;
  width: 100%;
  min-height: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 11px;
}

.login-page-footer > i {
  color: var(--gold);
  font-size: 15px;
}

.login-page-signature {
  color: var(--gold);
  font-family: var(--font-legal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.login-page-separator {
  color: var(--gold-muted);
}

.login-page-link {
  color: var(--text-muted);
  text-decoration: none;
}

.login-page-link:hover,
.login-page-link:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
}

.login-page-copyright {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .login-wrapper {
    align-items: stretch;
    padding: 0;
  }

  .login-form-panel {
    min-height: 100vh;
    min-height: 100dvh;
    flex: 1 0 100%;
    padding-bottom: 8px;
  }

  .step-header {
    margin-bottom: 26px;
  }

  .step-title {
    font-size: 24px;
  }

  .step-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-input {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .btn-login {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .login-help {
    margin-top: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .login-form-panel {
    padding-bottom: 6px;
  }

  .step-header {
    margin-bottom: 18px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .login-page-footer {
    column-gap: 5px;
    min-height: 40px;
    padding-top: 8px;
    font-size: 9px;
  }

  .login-page-signature {
    font-size: 10px;
  }

  .login-page-footer > i {
    font-size: 13px;
  }
}

.brand-tagline {
  margin-bottom: 22px;
}

.brand-description {
  margin-bottom: 32px;
}

.brand-features {
  gap: 22px;
}

.brand-content {
  transform: translateY(10px);
}

@media (max-height: 760px) and (min-width: 901px) {
  .brand-tagline {
    margin-bottom: 14px;
  }

  .brand-description {
    margin-bottom: 22px;
  }

  .brand-features {
    gap: 14px;
  }
}
