/* ==========================================================================
   99EVS Login v2 — Refined Production Stylesheet
   Premium Mobility Intelligence Platform
   ========================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  /* Brand Palette */
  --bg-primary: #060b14;
  --bg-secondary: #0a1120;
  --bg-card: rgba(12, 20, 38, 0.82);
  --bg-card-solid: #0c1426;
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glass-hover: rgba(255, 255, 255, 0.10);

  /* Accent */
  --green-500: #00c853;
  --green-400: #00e676;
  --green-300: #69f0ae;
  --green-glow: rgba(0, 200, 83, 0.30);
  --teal-400: #00bfa5;
  --teal-300: #1de9b6;
  --teal-glow: rgba(0, 191, 165, 0.20);

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.50);
  --text-dim: rgba(255, 255, 255, 0.30);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-glass), inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-glass-hover), inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-glow-green: 0 0 20px var(--green-glow), 0 0 40px rgba(0, 200, 83, 0.08);
  --shadow-glow-teal: 0 0 20px var(--teal-glow);
  --shadow-input-focus: 0 0 0 3px rgba(0, 200, 83, 0.12), 0 0 14px rgba(0, 200, 83, 0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-bg: 0;
  --z-particles: 1;
  --z-content: 10;
  --z-header: 20;
  --z-modal: 100;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ── Background Layer ──────────────────────────────────────────────────── */
.mobility-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  pointer-events: none;
}

.mobility-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 191, 165, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(0, 200, 83, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(0, 150, 255, 0.02) 0%, transparent 50%);
}

.mobility-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Main Layout ───────────────────────────────────────────────────────── */
.login-page {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6) var(--space-4);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.login-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand__shield {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-500), var(--teal-400));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-green);
}

.brand__shield svg {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand__name span {
  color: var(--green-400);
}

.brand__tagline {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Region Selector */
.region-selector {
  position: relative;
}

.region-selector__btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.region-selector__btn:hover {
  border-color: var(--border-glass-hover);
  background: rgba(12, 20, 38, 0.90);
}

.region-selector__btn:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 2px;
}

.region-selector__btn svg {
  width: 16px;
  height: 16px;
  color: var(--green-400);
}

.region-selector__btn .chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.region-selector__btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.region-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 200px;
  background: rgba(10, 17, 32, 0.92);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), visibility 200ms;
  z-index: var(--z-modal);
}

.region-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.region-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.region-dropdown__item:hover,
.region-dropdown__item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  outline: none;
}

.region-dropdown__item.is-active {
  color: var(--green-400);
  background: rgba(0, 200, 83, 0.06);
}

.region-dropdown__flag {
  font-size: 1rem;
  line-height: 1;
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 640px;
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero__title--primary {
  color: var(--text-primary);
  display: block;
}

.hero__title--accent {
  display: block;
  background: linear-gradient(135deg, var(--green-400), var(--teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero__subtitle em {
  color: var(--green-400);
  font-style: normal;
  font-weight: 500;
}

/* ── Login Card ────────────────────────────────────────────────────────── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(32px) saturate(1.15);
  -webkit-backdrop-filter: blur(32px) saturate(1.15);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.login-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 200, 83, 0.03), transparent 60%);
  pointer-events: none;
}

.login-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Shield Animation — Soft glow + expanding ring */
.card-shield {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-shield__glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  opacity: 0.4;
  animation: shieldGlow 4s ease-in-out infinite;
  will-change: opacity;
}

@keyframes shieldGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

.card-shield__icon {
  width: 40px;
  height: 40px;
  color: var(--green-400);
  position: relative;
  z-index: 1;
}

.card-shield__ring {
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--green-500);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  animation: ringExpand 12s ease-out infinite;
}

@keyframes ringExpand {
  0% { opacity: 0; transform: scale(0.8); }
  8% { opacity: 0.25; }
  20% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

.card-welcome {
  text-align: center;
  margin-bottom: var(--space-6);
}

.card-welcome__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.card-welcome__subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ── Journey Step Indicator ──────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: 'Inter', sans-serif;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.step__label {
  transition: color var(--transition-base);
}

.step--current .step__label {
  color: var(--green-400);
}

.step--pending .step__label {
  color: var(--text-dim);
}

.step--complete .step__label {
  color: var(--green-400);
}

.step-arrow {
  color: var(--text-dim);
  opacity: 0.4;
  font-size: 0.625rem;
  transition: all var(--transition-base);
}

.step--complete + .step-arrow {
  color: var(--green-500);
  opacity: 0.6;
}

/* ── Form ──────────────────────────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-label__required {
  color: var(--green-400);
  margin-left: 2px;
}

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

.input-wrapper__icon {
  position: absolute;
  left: var(--space-4);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color var(--transition-fast);
  z-index: 1;
}

.form-input:focus ~ .input-wrapper__icon,
.input-wrapper:focus-within .input-wrapper__icon {
  color: var(--green-400);
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

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

.form-input:hover {
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.05);
}

.form-input:focus {
  border-color: var(--green-500);
  background: rgba(0, 200, 83, 0.03);
  box-shadow: var(--shadow-input-focus);
  outline: none;
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #ff5252;
}

.form-input:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.12);
}

/* Country code prefix */
.input-wrapper--mobile {
  display: flex;
  align-items: stretch;
}

.country-code {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-3) 0 var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.country-code:hover {
  background: rgba(255, 255, 255, 0.06);
}

.country-code svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.input-wrapper--mobile .form-input {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding-left: var(--space-4);
}

/* Inline validation message */
.validation-msg {
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.validation-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.validation-msg--error {
  color: #ff5252;
}

.validation-msg--success {
  color: var(--green-400);
}

.validation-msg svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Submit Button ─────────────────────────────────────────────────────── */
.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  border: none;
  border-radius: var(--radius-lg);
  color: var(--bg-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.22), 0 0 0 1px rgba(0, 200, 83, 0.15);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 200, 83, 0.32), 0 0 0 1px rgba(0, 200, 83, 0.25);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 200, 83, 0.18);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* Subtle shimmer sweep */
.btn-submit__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: btnShimmer 10s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes btnShimmer {
  0%, 85%, 100% { background-position: 200% 0; }
  90% { background-position: -200% 0; }
}

/* Ripple effect */
.btn-submit__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 600ms linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-submit__text {
  position: relative;
  z-index: 1;
}

.btn-submit__icon {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.btn-submit:hover:not(:disabled) .btn-submit__icon {
  transform: translateX(2px);
}

/* Spinner */
.btn-submit__spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(6, 11, 20, 0.2);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-submit.is-loading .btn-submit__text,
.btn-submit.is-loading .btn-submit__icon {
  display: none;
}

.btn-submit.is-loading .btn-submit__spinner {
  display: block;
}

/* Success transition */
.btn-submit.is-success {
  background: linear-gradient(135deg, #00a844, var(--green-500));
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.35);
}

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

/* ── Trust Message ────────────────────────────────────────────────────── */
.trust-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 200, 83, 0.04);
  border: 1px solid rgba(0, 200, 83, 0.08);
  border-radius: var(--radius-md);
}

.trust-message__icon {
  width: 16px;
  height: 16px;
  color: var(--green-400);
  flex-shrink: 0;
}

.trust-message__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-message__sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
}

/* Auto-create notice */
.auto-create {
  text-align: center;
  margin-top: var(--space-5);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auto-create__highlight {
  color: var(--green-400);
  font-weight: 500;
}

/* ── Feature Cards ────────────────────────────────────────────────────── */
.features {
  width: 100%;
  max-width: 800px;
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  position: relative;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.feature-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  opacity: 0.12;
}

.feature-card:nth-child(1) .feature-card__icon::before { background: var(--green-500); }
.feature-card:nth-child(1) .feature-card__icon svg { color: var(--green-400); }

.feature-card:nth-child(2) .feature-card__icon::before { background: var(--teal-400); }
.feature-card:nth-child(2) .feature-card__icon svg { color: var(--teal-300); }

.feature-card:nth-child(3) .feature-card__icon::before { background: var(--green-500); }
.feature-card:nth-child(3) .feature-card__icon svg { color: var(--green-400); }

.feature-card:nth-child(4) .feature-card__icon::before { background: #7c4dff; }
.feature-card:nth-child(4) .feature-card__icon svg { color: #b388ff; }

.feature-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.feature-card__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 160px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.login-footer {
  width: 100%;
  max-width: 1200px;
  margin-top: auto;
  padding-top: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--text-secondary);
}

.footer-link svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.footer-divider {
  width: 1px;
  height: 14px;
  background: var(--border-glass);
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-dim);
  font-size: 0.75rem;
}

.footer-copyright__brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
}

.footer-copyright__tagline {
  color: var(--green-400);
  font-weight: 500;
}

/* ── OTP Verification View ─────────────────────────────────────────────── */
.otp-view {
  display: none;
}

.otp-view.is-active {
  display: block;
}

.otp-view.is-active ~ .form-view,
.otp-view.is-active ~ .trust-message,
.otp-view.is-active ~ .auto-create {
  display: none;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
}

.otp-input:focus {
  border-color: var(--green-500);
  background: rgba(0, 200, 83, 0.03);
  box-shadow: var(--shadow-input-focus);
  outline: none;
}

.otp-resend {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.otp-resend__btn {
  background: none;
  border: none;
  color: var(--green-400);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.otp-resend__btn:hover {
  color: var(--green-300);
}

.otp-resend__btn:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
  text-decoration: none;
}

/* ── Toast Notifications ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateX(120%);
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  max-width: 360px;
}

.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--success { border-left: 3px solid var(--green-500); }
.toast--error { border-left: 3px solid #ff5252; }
.toast--info { border-left: 3px solid var(--teal-400); }

.toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast--success .toast__icon { color: var(--green-400); }
.toast--error .toast__icon { color: #ff5252; }
.toast--info .toast__icon { color: var(--teal-300); }

/* ── Responsive Breakpoints ────────────────────────────────────────────── */

/* Tablet (768px) */
@media (max-width: 1023px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }

  .login-card {
    padding: var(--space-6) var(--space-5);
  }

  .hero {
    margin-bottom: var(--space-8);
  }
}

/* Mobile Landscape / Large Phone (768px and below) */
@media (max-width: 767px) {
  .login-page {
    padding: var(--space-5) var(--space-4);
  }

  .login-header {
    margin-bottom: var(--space-8);
  }

  .brand__shield {
    width: 36px;
    height: 36px;
  }

  .brand__shield svg {
    width: 20px;
    height: 20px;
  }

  .brand__name {
    font-size: 1.125rem;
  }

  .brand__tagline {
    font-size: 0.5rem;
    letter-spacing: 0.15em;
  }

  .hero {
    margin-bottom: var(--space-6);
  }

  .hero__title {
    line-height: 1.15;
  }

  .login-card {
    padding: var(--space-6) var(--space-4);
  }

  .card-shield {
    width: 56px;
    height: 56px;
  }

  .card-shield__icon {
    width: 32px;
    height: 32px;
  }

  .features {
    margin-top: var(--space-8);
    gap: var(--space-3);
  }

  .feature-card {
    padding: var(--space-4) var(--space-3);
  }

  .feature-card__icon {
    width: 36px;
    height: 36px;
  }

  .feature-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-card__title {
    font-size: 0.875rem;
  }

  .feature-card__desc {
    font-size: 0.6875rem;
  }

  .footer-links {
    gap: var(--space-4);
  }

  .footer-divider {
    display: none;
  }

  .otp-input {
    width: 42px;
    height: 50px;
    font-size: 1.125rem;
  }

  .step-indicator {
    font-size: 0.6875rem;
  }
}

/* Small Phone (320px) */
@media (max-width: 359px) {
  .login-page {
    padding: var(--space-4) var(--space-3);
  }

  .login-card {
    padding: var(--space-5) var(--space-3);
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 0.875rem;
  }

  .step-indicator {
    font-size: 0.625rem;
    gap: var(--space-1);
  }

  .features {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .feature-card {
    flex-direction: row;
    text-align: left;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .feature-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .feature-card__title {
    margin-bottom: 2px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-3);
  }

  .otp-inputs {
    gap: var(--space-2);
  }

  .otp-input {
    width: 38px;
    height: 46px;
  }
}

/* Desktop Large (1440px+) */
@media (min-width: 1440px) {
  .login-page {
    padding: var(--space-8) var(--space-6);
  }

  .login-header {
    max-width: 1320px;
  }

  .login-footer {
    max-width: 1320px;
  }

  .features {
    max-width: 900px;
    gap: var(--space-5);
  }

  .feature-card {
    padding: var(--space-6) var(--space-5);
  }
}

/* ── Print Styles ──────────────────────────────────────────────────────── */
@media print {
  .mobility-bg,
  .card-shield__glow,
  .card-shield__ring,
  .btn-submit__shimmer {
    display: none !important;
  }

  .login-page {
    background: #fff;
    color: #000;
  }

  .login-card {
    background: #f5f5f5;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ── High Contrast Mode ───────────────────────────────────────────────── */
@media (prefers-contrast: more) {
  .login-card {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
  }

  .form-input {
    border-width: 2px;
  }

  .btn-submit {
    border: 2px solid var(--text-primary);
  }
}

/* ==========================================================================
   99EVS INTEGRATION ADDENDUM
   Appended for the live 99EVS build. Nothing above this line was modified.

   1. Numbered step badges + connector line (the approved design shows
      circled 1-2-3 with a joining rule; the base sheet shipped text-only
      steps separated by a down-arrow glyph).
   2. Minimal alert styling for evs_flash_html() output. That helper emits
      Bootstrap alert markup, and Bootstrap is not loaded on this page.
   3. Back-link and masked-destination styles for the OTP view.
   ========================================================================== */

/* ── 1. Numbered step indicator ──────────────────────────────────────────── */
.step-indicator {
  gap: 0;
  align-items: flex-start;
}

.step {
  flex-direction: column;
  gap: var(--space-2);
  flex: 0 0 auto;
}

.step__num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-glass-hover);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all var(--transition-base);
}

.step--current .step__num {
  background: var(--green-400);
  border-color: var(--green-400);
  color: #04140b;
  box-shadow: var(--shadow-glow-green);
}

.step--complete .step__num {
  border-color: var(--green-500);
  color: var(--green-400);
  box-shadow: none;
}

.step-line {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1.5px;
  margin: 15px var(--space-2) 0;
  background: var(--border-glass-hover);
  transition: background var(--transition-base);
}

.step--complete + .step-line {
  background: var(--green-500);
}

/* ── 2. evs_flash_html() shim (Bootstrap markup, no Bootstrap CSS) ───────── */
.login-card .alert {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.login-card .alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.login-card .alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.login-card .alert-success {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.25);
  color: #86efac;
}

.login-card .alert .btn-close {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.55;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.login-card .alert .btn-close::before { content: '\00d7'; }
.login-card .alert .btn-close:hover   { opacity: 1; }

/* ── 3. OTP view: destination + back link ────────────────────────────────── */
.otp-dest {
  margin-bottom: var(--space-5);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.otp-dest strong {
  color: var(--green-400);
  font-weight: 600;
}

.otp-back {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-2);
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.otp-back:hover { color: var(--text-primary); }

/* ── Small-screen adjustments for the step badges ────────────────────────── */
@media (max-width: 380px) {
  .step__num  { width: 26px; height: 26px; font-size: 0.75rem; }
  .step-line  { min-width: 12px; margin-top: 13px; }
  .step       { font-size: 0.6875rem; }
}

/* ── Element-type corrections for the live markup ────────────────────────── */
/* The region control is an <a> to /region/select.php (same target as
   partials/header.php), not a dropdown button. */
.region-selector__btn { text-decoration: none; }

/* +91 is fixed: evs_valid_mobile() accepts Indian numbers only, so the
   country code is a static <span>, not an interactive control. */
.country-code        { cursor: default; }
.country-code:hover  { background: rgba(255, 255, 255, 0.04); }
