/* ==========================================================================
   HexVoice — Login Page Styles
   Reference: Golden Hour Coastal Transit Cityscape with Glassmorphic Panel
   ========================================================================== */

:root {
  font-family: Inter, Roboto, Lato, Cabin, "PT Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;

  /* Brand Palette */
  --bronze-accent: #c59f69;
  --bronze-gold: #d99642;
  --bronze-light: #dfba82;
  --bronze-soft: #ecd6b5;
  --bronze-dark: #866745;
  --bronze-btn-from: #be843d;
  --bronze-btn-to: #a16a2c;

  /* Dark Theme Tokens (Default) */
  --bg-app: #0a0e17;
  --panel-bg: rgba(18, 22, 32, 0.90);
  --panel-border: rgba(255, 255, 255, 0.10);
  --panel-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 4px 16px rgba(0, 0, 0, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --welcome-bg: rgba(217, 150, 66, 0.08);
  --welcome-border: rgba(217, 150, 66, 0.20);
  --welcome-title: #f1f5f9;

  --input-bg: rgba(15, 23, 42, 0.65);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-text: #f8fafc;
  --input-placeholder: #64748b;
  --input-focus-border: var(--bronze-accent);
  --input-focus-glow: rgba(197, 159, 105, 0.25);

  --sso-bg: rgba(255, 255, 255, 0.04);
  --sso-border: rgba(255, 255, 255, 0.14);
  --sso-text: #f1f5f9;
  --sso-hover-bg: rgba(255, 255, 255, 0.08);

  --divider-line: rgba(255, 255, 255, 0.12);
  --divider-text: #64748b;

  --modal-bg: #141722;
  --modal-border: rgba(255, 255, 255, 0.12);

  --backdrop-filter-dark: brightness(0.94) contrast(1.02);
  --overlay-left: linear-gradient(to right, rgba(12, 20, 32, 0.55) 0%, rgba(12, 20, 32, 0.28) 38%, transparent 64%),
                  radial-gradient(ellipse at 22% 48%, rgba(12, 20, 32, 0.45) 0%, rgba(12, 20, 32, 0.18) 50%, transparent 75%);
}

/* Light Theme Variables */
[data-theme="light"] {
  color-scheme: light;

  --panel-bg: rgba(255, 255, 255, 0.96);
  --panel-border: rgba(255, 255, 255, 0.85);
  --panel-shadow: 0 32px 80px rgba(10, 20, 36, 0.18), 0 4px 18px rgba(0, 0, 0, 0.06);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --welcome-bg: #faf6f0;
  --welcome-border: #f0e6d6;
  --welcome-title: #1e293b;

  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-text: #0f172a;
  --input-placeholder: #94a3b8;
  --input-focus-border: #c59f69;
  --input-focus-glow: rgba(197, 159, 105, 0.22);

  --sso-bg: #ffffff;
  --sso-border: #e2e8f0;
  --sso-text: #1e293b;
  --sso-hover-bg: #f8fafc;

  --divider-line: #e2e8f0;
  --divider-text: #94a3b8;

  --modal-bg: #ffffff;
  --modal-border: #e2e8f0;

  --backdrop-filter-dark: none;
  --overlay-left: linear-gradient(to right, rgba(12, 20, 32, 0.40) 0%, rgba(12, 20, 32, 0.18) 36%, transparent 60%);
}

/* --------------------------------------------------------------------------
   Reset & Base Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-layout {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Full-Bleed Visual Backdrop & Ambient Overlays
   -------------------------------------------------------------------------- */
.login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop-image {
  position: absolute;
  inset: 0;
  background-image: url('./assets/login-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: var(--backdrop-filter-dark);
  transition: filter 0.4s ease;
}

/* Left Narrative Dark Scrim for High-Contrast Text Legibility */
.backdrop-gradient-left {
  position: absolute;
  inset: 0;
  background: var(--overlay-left);
  z-index: 1;
}

/* Bottom vignette disabled to maintain natural golden hour daylight and bay clarity */
.backdrop-gradient-bottom {
  display: none;
}

/* Ambient warm glow reflecting off transit hub */
.backdrop-ambient-mesh {
  position: absolute;
  bottom: 0;
  right: 15%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 150, 66, 0.10) 0%, transparent 70%);
  z-index: 3;
}

/* Organic decorative curve cutting across the bay and city */
.hero-hex-network {
  position: absolute;
  top: 12px;
  left: 8px;
  width: min(58vw, 760px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  color: #e5a448;
  overflow: visible;
}
.hero-hex-drift { animation: hex-drift 24s ease-in-out infinite alternate; }
.hero-hex { fill: none; stroke: #f3dec0; stroke-width: .65; opacity: .13; }
.hero-hex-signals { opacity: 0; transition: opacity 300ms ease; }
.hero-is-listening .hero-hex-signals { opacity: 1; }
.hero-hex-link { fill: none; stroke: #e5c48b; stroke-width: .45; opacity: 0; }
.hero-hex-node { fill: #f6dfb6; opacity: 0; }
.hero-hex-node-halo { opacity: .12; }
@keyframes hex-drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(3px, -4px); }
  100% { transform: translate(-2px, 3px); }
}
@media (max-width: 760px) { .hero-hex-network { width: 88vw; } }
@media (prefers-reduced-motion: reduce) {
  .hero-hex-drift { animation: none; }
  .hero-hex-signals { transition: none; }
}
.backdrop-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Top-Right Floating Theme Switcher
   -------------------------------------------------------------------------- */
.top-controls {
  position: absolute;
  top: 28px;
  right: 36px;
  z-index: 20;
}

.theme-switcher {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

[data-theme="light"] .theme-switcher {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn svg {
  width: 14px;
  height: 14px;
}

.theme-btn:hover {
  color: #f8fafc;
}

[data-theme="light"] .theme-btn:hover {
  color: #0f172a;
}

.theme-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-btn.active {
  background: #ffffff;
  color: var(--bronze-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Main Container Composition (Left Storytelling + Right Login Card)
   -------------------------------------------------------------------------- */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* --------------------------------------------------------------------------
   Left Column: Brand & Storytelling
   -------------------------------------------------------------------------- */
.brand-hero {
  flex: 1;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

/* Institutional Header (Tenant Context) */
.tenant-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.tenant-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.tenant-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
}

.tenant-info {
  display: flex;
  flex-direction: column;
}

.tenant-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.tenant-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 2px;
}

.tenant-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

/* Hero Typography */
.hero-heading {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.accent-gold {
  color: #e5a448;
  text-shadow: 0 0 24px rgba(229, 164, 72, 0.35);
  position: relative;
  display: inline-block;
}

.hero-voice-trigger {
  position: absolute;
  top: -24px;
  right: -68px;
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  cursor: pointer;
  transform: rotate(-13deg);
  transform-origin: center;
  transition: transform 250ms ease;
}
.hero-voice-trigger::before { content: ""; position: absolute; inset: -7px; }
.hero-voice-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; border-radius: 4px; }
.hero-voice-burst {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 3px 14px rgba(217, 150, 66, 0.5));
  user-select: none;
}
@media (hover: hover) {
  .hero-voice-trigger:hover { transform: rotate(-13deg) scale(1.04); }
  .hero-voice-trigger:hover .hero-voice-burst { animation: voice-whisper 250ms ease-in-out 2; }
}
@keyframes voice-whisper {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(.45px) rotate(.35deg); }
  75% { transform: translateX(-.45px) rotate(-.35deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-voice-trigger { transition: none; }
  .hero-voice-trigger:hover { transform: rotate(-13deg); }
  .hero-voice-trigger:hover .hero-voice-burst { animation: none; }
}

.hero-accent-pill {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #e5a448;
  margin: 18px 0 16px;
  box-shadow: 0 2px 8px rgba(229, 164, 72, 0.4);
}

.hero-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.90);
  max-width: 410px;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Three Value Propositions — Clean Editorial Vertical List with Bronze Squircle Badges */
.value-props {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.25s ease;
}

.value-card:hover {
  transform: translateX(4px);
  background: transparent;
  border-color: transparent;
}

.value-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(45, 34, 25, 0.72);
  border: 1px solid rgba(229, 164, 72, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.10);
  color: #e5a448;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover .value-icon {
  background: rgba(60, 44, 30, 0.85);
  border-color: rgba(229, 164, 72, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), 0 0 12px rgba(229, 164, 72, 0.25);
  transform: scale(1.04);
}

[data-theme="light"] .value-icon {
  background: rgba(217, 150, 66, 0.12);
  border-color: rgba(217, 150, 66, 0.28);
  color: #b87a2a;
  box-shadow: 0 2px 8px rgba(184, 122, 42, 0.10);
}

.value-icon svg {
  width: 20px;
  height: 20px;
  stroke: #e5a448;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

[data-theme="light"] .value-icon svg {
  stroke: #b87a2a;
  filter: none;
}

.value-text {
  display: flex;
  flex-direction: column;
}

.value-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.value-text span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.4;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Right Column: Floating Authentication Panel
   -------------------------------------------------------------------------- */
.auth-panel-wrapper {
  flex-shrink: 0;
  width: 400px;
  max-width: 100%;
  z-index: 10;
}

.auth-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 28px 28px 22px;
  box-shadow: var(--panel-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: panelEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Brand Section inside Panel */
.auth-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
}

.auth-product-name {
  font-size: 23px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.auth-product-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
}

/* Welcome Banner / Box */
.welcome-banner {
  background: var(--welcome-bg);
  border: 1px solid var(--welcome-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 15px 0 14px;
  transition: background 0.3s ease;
}

.welcome-banner strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--welcome-title);
}

.welcome-banner p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Alert Notification Banner */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  animation: alertFade 0.2s ease-out;
}

[data-theme="light"] .auth-alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

[data-theme="light"] .auth-alert.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.auth-alert[hidden] {
  display: none;
}

@keyframes alertFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

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

.input-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  padding: 0 38px 0 38px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  color: var(--input-text);
  transition: all 0.2s ease;
}

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

.form-input:hover {
  border-color: rgba(197, 159, 105, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--input-focus-glow);
}

.form-group.has-error .form-input {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.field-error {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #ef4444;
  margin-top: 4px;
  padding-left: 2px;
  min-height: 15px;
}

.field-error:empty {
  display: none;
}

/* Global Hidden Guarantee */
[hidden], svg[hidden] {
  display: none !important;
}

/* Password Eye Toggle */
.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.18s ease;
  padding: 0;
}

.btn-toggle-pwd:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .btn-toggle-pwd:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-toggle-pwd svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.btn-toggle-pwd .icon-eye {
  display: block;
}

.btn-toggle-pwd .icon-eye-slash {
  display: none;
}

.btn-toggle-pwd.is-revealed .icon-eye {
  display: none !important;
}

.btn-toggle-pwd.is-revealed .icon-eye-slash {
  display: block !important;
}

/* Utility Row (Remember Me & Forgot Password) */
.form-row-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
}

/* Custom Checkbox */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #ffffff;
}

.checkbox-indicator svg {
  width: 10px;
  height: 10px;
  stroke: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-checkbox input:checked + .checkbox-indicator {
  background: var(--bronze-accent);
  border-color: var(--bronze-accent);
}

.custom-checkbox input:checked + .checkbox-indicator svg {
  opacity: 1;
  transform: scale(1);
}

.custom-checkbox:hover .checkbox-indicator {
  border-color: var(--bronze-accent);
}

.checkbox-label {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-forgot-password {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--bronze-accent);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.btn-forgot-password:hover {
  color: var(--bronze-light);
  text-decoration: underline;
}

[data-theme="light"] .btn-forgot-password:hover {
  color: #945c1a;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bronze-btn-from) 0%, var(--bronze-btn-to) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(161, 106, 44, 0.32);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(161, 106, 44, 0.40);
  filter: brightness(1.06);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.96);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

/* Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-spinner[hidden] {
  display: none;
}

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

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}

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

.divider-text {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--divider-text);
  text-transform: lowercase;
}

/* Secondary SSO Button */
.btn-sso {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--sso-text);
  background: var(--sso-bg);
  border: 1.5px solid var(--sso-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-sso:hover {
  background: var(--sso-hover-bg);
  border-color: rgba(197, 159, 105, 0.35);
}

.sso-icon {
  width: 16px;
  height: 16px;
  color: var(--bronze-accent);
}

/* Footer Links */
.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.auth-footer a:hover {
  color: var(--bronze-accent);
  text-decoration: underline;
}

.footer-sep {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Modal Dialog (Forgot Password, Terms, Privacy)
   -------------------------------------------------------------------------- */
.auth-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  background: transparent;
  padding: 20px;
  max-width: 480px;
  width: 90%;
  z-index: 100;
}

.auth-modal::backdrop {
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  animation: alertFade 0.25s ease-out;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.18s ease;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-body strong {
  color: var(--text-main);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
}

.btn-modal-ok {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: var(--bronze-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.btn-modal-ok:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (768px – 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .login-container {
    padding: 32px 32px;
    gap: 28px;
  }

  .hero-heading {
    font-size: 40px;
  }

  .hero-voice-trigger {
    width: 56px;
    top: -18px;
    right: -52px;
  }

  .auth-panel-wrapper {
    width: 360px;
  }

  .auth-panel {
    padding: 24px 22px 18px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .top-controls {
    top: 14px;
    right: 14px;
  }

  .login-container {
    padding: 56px 16px 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Hide large desktop narrative hero on mobile, focus entirely on login */
  .brand-hero {
    display: none;
  }

  .auth-panel-wrapper {
    width: 100%;
    max-width: 380px;
  }

  .auth-panel {
    padding: 24px 20px 20px;
    border-radius: 18px;
  }

  .auth-product-name {
    font-size: 22px;
  }

  .welcome-banner {
    padding: 12px 16px;
    margin: 18px 0 18px;
  }

  .form-input {
    height: 46px;
  }

  .btn-primary, .btn-sso {
    height: 46px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
