/* ============================================
   SCOUTING AUTH — Fullscreen Liquid Glass
   Ultra sophisticated · Video background
   ============================================ */

:root {
  --bg: #060606;
  --text: #f0f0f5;
  --text-muted: rgba(240, 240, 245, 0.65);
  --text-dim: rgba(240, 240, 245, 0.4);
  --accent-purple: #a855f7;
  --accent-blue: #38bdf8;
  --gradient: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Urbanist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Better keyboard/overscroll behavior on mobile */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport for mobile browsers */
}

body {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

body.is-loaded { opacity: 1; }

/* ═══ FULLSCREEN VIDEO BACKGROUND ═══ */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: blur(2px);
}

.auth-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(6,6,6,0.25) 50%, rgba(6,6,6,0.6) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.35) 0%, rgba(6,6,6,0.25) 30%, rgba(6,6,6,0.25) 70%, rgba(6,6,6,0.45) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* ═══ BOTTOM BLUR GRADIENT — progressive intensity ═══ */
.auth-bottom-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25vh;
  z-index: 5;
  pointer-events: none;
}

.auth-bottom-blur__layer {
  position: absolute;
  inset: 0;
}

/* Each layer masks a deeper portion with more blur */
.auth-bottom-blur__layer--1 {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,1) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.auth-bottom-blur__layer--2 {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0,0,0,1) 75%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0,0,0,1) 75%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.auth-bottom-blur__layer--3 {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0,0,0,1) 90%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0,0,0,1) 90%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.auth-bottom-blur__layer--4 {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 80%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 80%, rgba(0,0,0,1) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, transparent 0%, rgba(6,6,6,0.4) 100%);
}

/* ═══ LOGO (centered above card) ═══ */
.auth-logo {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: 20;
  transition: transform 0.2s var(--ease-spring);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
}

.auth-logo svg {
  width: 28px;
  height: 32px;
}

.auth-logo:hover {
  transform: translateX(-50%) translateY(-2px);
}

/* ═══ MAIN CONTAINER ═══ */
.auth-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh; /* Adjusts when mobile keyboard opens */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

/* ═══ LIQUID GLASS CARD (Apple technique) ═══ */
.liquid-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  border-radius: 28px;
  isolation: isolate;
  /* Subtle elevation shadow + outer edge */
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 8px 24px -6px rgba(0, 0, 0, 0.35),
    0 24px 56px -12px rgba(0, 0, 0, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.12);
  animation: cardIn 0.8s var(--ease-out) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Layer 1: Tint + specular highlights (sits above ::after blur) */
.liquid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 28px;
  /* Darker tint + refraction gradient */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 30%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.02) 85%,
      rgba(255, 255, 255, 0.08) 100%
    ),
    rgba(8, 8, 12, 0.68);
  /* Specular highlights on edges */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.08),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.06),
    inset -1px 0 0 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Layer 2: Backdrop blur + saturation (denser for visible liquid effect) */
.liquid-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 28px;
  backdrop-filter: blur(64px) saturate(200%) brightness(0.85);
  -webkit-backdrop-filter: blur(64px) saturate(200%) brightness(0.85);
  isolation: isolate;
  pointer-events: none;
}

.liquid-card__content {
  position: relative;
  z-index: 10;
  padding: 36px 36px 28px;
}

/* ═══ TABS (Liquid Glass — Apple pill) ═══ */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 28px;
  padding: 4px;
  /* Container track — recessed groove */
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 1px 0 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.auth-tab {
  position: relative;
  height: 36px;
  background: none;
  border: none;
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 9px;
  transition: color 0.25s var(--ease-out), text-shadow 0.25s var(--ease-out);
  z-index: 2;
}

.auth-tab.is-active {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Liquid Glass Pill Indicator */
.auth-tabs__indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 36px;
  border-radius: 9px;
  /* Dense liquid glass — highlight + tint + refraction gradient */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0.14) 100%
    ),
    rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  /* Multi-layer specular + elevation */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 1px 0 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 0 rgba(255, 255, 255, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.18),
    0 4px 12px -2px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease-spring);
  z-index: 1;
  pointer-events: none;
}

.auth-tabs[data-mode="signup"] .auth-tabs__indicator {
  transform: translateX(100%);
}

/* ═══ FORMS ═══ */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: formIn 0.45s var(--ease-out) both;
}

.auth-form.is-active { display: flex; }

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

.auth-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 4px 0 0;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* ═══ FIELDS ═══ */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 11px;
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  /* Liquid glass input — recessed */
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 1px 0 rgba(0, 0, 0, 0.25),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s, background 0.2s;
}

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

.auth-field input:hover {
  box-shadow:
    inset 0 1px 1px 0 rgba(0, 0, 0, 0.25),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.08);
}

.auth-field input:focus {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.05) 100%
    ),
    rgba(168, 85, 247, 0.04);
  box-shadow:
    inset 0 1px 1px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(168, 85, 247, 0.5),
    0 0 0 3px rgba(168, 85, 247, 0.12);
}

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

.auth-input-wrap input {
  padding-right: 44px;
}

.auth-input__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.auth-input__toggle:hover { color: var(--text-muted); background: rgba(255,255,255,0.05); }
.auth-input__toggle.is-visible { color: var(--accent-purple); }

/* ═══ ROW (remember + forgot) ═══ */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

/* ═══ CHECKBOX ═══ */
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
}

.auth-check input { display: none; }

.auth-check__mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.auth-check__mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease-spring);
}

.auth-check input:checked + .auth-check__mark {
  background: var(--gradient);
  border-color: transparent;
}

.auth-check input:checked + .auth-check__mark::after {
  transform: rotate(45deg) scale(1);
}

.auth-check:hover .auth-check__mark { border-color: rgba(255,255,255,0.25); }

.auth-check--terms {
  font-size: 12px;
  line-height: 1.5;
  align-items: flex-start;
}

.auth-check--terms .auth-check__mark {
  margin-top: 2px;
}

/* ═══ LINK ═══ */
.auth-link {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-purple);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-link:hover { color: var(--accent-blue); }

/* ═══ SUBMIT BUTTON (Liquid Glass + Gradient) ═══ */
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* Gradient base + liquid highlight gradient on top */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    var(--gradient);
  /* Multi-layer liquid glass shadows */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 6px 20px -2px rgba(168, 85, 247, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.28),
    0 10px 28px -2px rgba(168, 85, 247, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

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

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

.auth-submit:disabled { cursor: wait; opacity: 0.85; }

.auth-submit svg {
  transition: transform 0.25s var(--ease-out);
}

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

/* ═══ DIVIDER ═══ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ═══ SOCIAL BUTTONS (Liquid Glass) ═══ */
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border: none;
  border-radius: 11px;
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  /* Liquid glass layered fill */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  /* Edge specular + elevation */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 2px 6px -1px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.auth-social__btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.18),
    0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

.auth-social__btn:active {
  transform: translateY(0);
}

/* ═══ SWITCH TEXT ═══ */
.auth-switch {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-switch .auth-link {
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════ */
/* RESPONSIVE — Mobile (elevated, app-like)       */
/* ═══════════════════════════════════════════════ */

/* Tablet & small desktop */
/* iOS zoom prevention — apply 16px on all form controls up to tablets */
@media (max-width: 768px) {
  .auth-field input,
  .auth-field select,
  .auth-field textarea {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .auth-logo {
    top: max(28px, calc(env(safe-area-inset-top) + 20px));
    left: 50%;
    font-size: 16px;
    gap: 10px;
  }

  .auth-logo svg {
    width: 24px;
    height: 28px;
  }

  .auth-main {
    padding:
      max(100px, calc(env(safe-area-inset-top) + 90px))
      max(14px, env(safe-area-inset-left))
      max(60px, calc(env(safe-area-inset-bottom) + 50px))
      max(14px, env(safe-area-inset-right));
    align-items: flex-start;
  }

  .liquid-card {
    width: 100%;
    border-radius: 24px;
    /* Slightly less aggressive shadow (looks cleaner on small screens) */
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.1),
      0 6px 20px -4px rgba(0, 0, 0, 0.35),
      0 16px 40px -10px rgba(0, 0, 0, 0.45),
      0 0 0 0.5px rgba(255, 255, 255, 0.12);
  }

  .liquid-card::before,
  .liquid-card::after {
    border-radius: 24px;
  }

  .liquid-card__content {
    padding: 28px 22px 24px;
  }

  .auth-title {
    font-size: 22px;
    letter-spacing: -0.025em;
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* Tighter but still breathable */
  .auth-form {
    gap: 14px;
  }

  .auth-tabs {
    margin-bottom: 22px;
    padding: 4px;
  }

  .auth-tab {
    height: 40px;               /* Bigger tap target */
    font-size: 13px;
  }

  .auth-tabs__indicator {
    height: 40px;
  }

  /* Inputs: 16px font prevents iOS auto-zoom on focus */
  .auth-field label {
    font-size: 10px;
  }

  .auth-field input {
    height: 48px;
    font-size: 16px;            /* Critical for iOS */
    padding: 0 16px;
    border-radius: 12px;
  }

  .auth-input-wrap input {
    padding-right: 48px;
  }

  .auth-input__toggle {
    width: 44px;                /* Apple-recommended min touch target */
    height: 44px;
    right: 2px;
    border-radius: 10px;
  }

  /* Stack Remember + Forgot on narrow screens */
  .auth-row {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .auth-check {
    font-size: 13px;
  }

  .auth-check__mark {
    width: 18px;
    height: 18px;
  }

  .auth-check__mark::after {
    top: 3px;
    left: 6px;
  }

  .auth-link {
    font-size: 13px;
  }

  .auth-check--terms {
    font-size: 13px;
  }

  .auth-submit {
    height: 52px;               /* Large, primary tap target */
    font-size: 15px;
    border-radius: 13px;
    margin-top: 6px;
  }

  .auth-divider {
    margin: 6px 0;
  }

  /* Social buttons: equal size, easy tap */
  .auth-social {
    gap: 10px;
  }

  .auth-social__btn {
    height: 48px;
    font-size: 14px;
  }

  .auth-switch {
    margin-top: 8px;
    font-size: 13px;
  }

  /* Bottom blur less intrusive on mobile (keyboard-friendly) */
  .auth-bottom-blur {
    height: 14vh;
  }
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
  .auth-main {
    padding: 90px 10px calc(50px + env(safe-area-inset-bottom));
  }

  .liquid-card {
    border-radius: 22px;
  }

  .liquid-card::before,
  .liquid-card::after {
    border-radius: 22px;
  }

  .liquid-card__content {
    padding: 26px 18px 22px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-social__btn {
    font-size: 13px;
    gap: 6px;
  }
}

/* Short viewports (keyboard open, landscape phones) */
@media (max-height: 640px) {
  .auth-logo {
    top: 14px;
    font-size: 14px;
  }

  .auth-logo svg {
    width: 20px;
    height: 24px;
  }

  .auth-main {
    padding-top: 60px;
    padding-bottom: 20px;
    align-items: flex-start;
  }

  .auth-bottom-blur {
    height: 10vh;
  }

  .liquid-card {
    /* Kill entry animation so form is available instantly when keyboard opens */
    animation: none;
  }
}

/* ═══ TOUCH DEVICES — Optimize interactions ═══ */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover translateY (sticks weird on touch) */
  .auth-logo:hover,
  .auth-submit:hover:not(:disabled),
  .auth-social__btn:hover {
    transform: none;
  }

  /* Replace hover with active feedback for tactile feel */
  .auth-submit:active:not(:disabled) {
    transform: scale(0.98);
    transition-duration: 0.1s;
  }

  .auth-social__btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
  }

  .auth-tab:active {
    opacity: 0.7;
  }

  /* Stronger active state for the liquid pill */
  .auth-submit:active:not(:disabled) {
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 0 rgba(0, 0, 0, 0.2),
      inset 0 0 0 0.5px rgba(255, 255, 255, 0.18),
      0 3px 10px -2px rgba(168, 85, 247, 0.35),
      0 1px 3px rgba(0, 0, 0, 0.2);
  }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  .liquid-card,
  .auth-form { animation: none; }
  .auth-bg__video { display: none; }
  .auth-bg {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================
   FORGOT PASSWORD — migrated from inline styles
   ============================================ */

.fp-card {
  padding: 36px;
  text-align: center;
}

.fp-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
}

.fp-icon-wrap--success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
}

.fp-title,
.fp-subtitle { text-align: center; }

.fp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-top: 20px;
}

.fp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.fp-back:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

.fp-success { margin-top: 20px; }

.fp-success-email {
  color: var(--accent-purple);
  font-weight: 600;
}

.fp-success-action {
  text-decoration: none;
}
