/* ============================================================
   GODDY TABI — AUTH SCREENS
   Splash, login, PIN, success, forgot PIN, claim
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   SPLASH
══════════════════════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: var(--s3);
  transition: opacity 0.4s ease;
}
#splash.out { opacity: 0; pointer-events: none; }

.splash__logo {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  animation: splash-pop 0.5s var(--spring) both;
}
.splash__name {
  font-size: var(--text-lg);
  font-weight: var(--black);
  color: white;
  animation: splash-up 0.5s ease 0.15s both;
}
.splash__name span { color: var(--gold); }
.splash__bar {
  width: 40px; height: 3px;
  background: var(--gold);
  border-radius: var(--r-full);
  animation: splash-up 0.5s ease 0.25s both;
}
@keyframes splash-pop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes splash-up {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   AUTH WRAPPER
   Full-screen white on mobile
   Centered card on navy bg on desktop
══════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  background: white;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .auth-wrap {
    background:
      linear-gradient(135deg, rgba(15,30,66,0.88) 0%, rgba(27,45,94,0.82) 100%),
      url('/assets/images/gate-bg.jpg') center/cover no-repeat fixed,
      url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&q=80')
        center/cover no-repeat fixed;
    align-items: center;
    justify-content: center;
    padding: var(--s8) var(--s5);
  }
}

.auth-card {
  width: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 640px) {
  .auth-card {
    max-width: 420px;
    flex: none;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
  }
}

/* ══════════════════════════════════════════════════════════
   LOGIN — PHONE SCREEN
══════════════════════════════════════════════════════════ */
.login-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Hero: bg image + gradient overlay + doodle texture ── */
.login__hero {
  background:
    linear-gradient(160deg, rgba(15,30,66,0.88) 0%, rgba(27,45,94,0.78) 60%, rgba(27,45,94,0.65) 100%),
    url('/assets/images/gate-bg.jpg') center/cover no-repeat,
    url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1600&q=80') center/cover no-repeat;
  padding: 40px 24px 92px;  /* extra bottom = clear space above illustration */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: visible;
  min-height: 300px;
}

/* Subtle SVG doodle texture */
.login__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='white' stroke-width='1'%3E%3Cpath d='M20 20l6-6M50 15l4 4M60 50l3-3M15 55l5 5M40 65l4-4' opacity='.07'/%3E%3Ccircle cx='25' cy='60' r='4' opacity='.05'/%3E%3Ccircle cx='65' cy='25' r='3' opacity='.05'/%3E%3Cpolygon points='70,65 73,58 77,65' opacity='.06'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

/* Wave divider at bottom of hero */
.login__hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 40px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

/* ── Hero elements ── */
.login__hero-logo {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow:
    0 0 0 5px rgba(212,160,23,0.35),
    0 8px 32px rgba(0,0,0,0.4);
  object-fit: cover;
  position: relative;
  z-index: 2;
  animation: logo-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes logo-pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.login__hero-name {
  font-size: 22px;
  font-weight: 900;
  color: white;
  text-align: center;
  letter-spacing: -0.3px;
  position: relative; z-index: 2;
  animation: gate-fade-up 0.5s ease 0.15s both;
}
.login__hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.4px;
  position: relative; z-index: 2;
  animation: gate-fade-up 0.5s ease 0.25s both;
}
.login__hero-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  position: relative; z-index: 2;
  animation: gate-fade-up 0.5s ease 0.3s both;
}
.login__hero-divider div {
  width: 32px; height: 1px;
  background: rgba(212,160,23,0.5);
}
.login__hero-tagline {
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  text-align: center;
  line-height: 1.5;
  max-width: 220px;
  position: relative; z-index: 2;
  animation: gate-fade-up 0.5s ease 0.35s both;
}

/* Illustration: decorative, sits in bottom padding area of hero */
.login__illustration {
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 140px;         /* was 260px — kept small, not a focal point */
  max-width: 42%;
  max-height: 112px;    /* prevents tall images from bleeding upward */
  object-fit: contain;
  object-position: bottom center;
  z-index: 1;           /* z-index: 1 → hero text (z-index:2) always on top */
  pointer-events: none;
  animation: illus-fade-up 0.6s ease 0.4s both;
}

@keyframes gate-fade-up {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
/* Illustration keeps its translateX(-50%) through the animation */
@keyframes illus-fade-up {
  from { transform: translateX(-50%) translateY(14px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ── Form section ── */
.login__form-section {
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 36px 24px 20px;
  margin-top: -28px;
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Extra top padding when illustration overlaps into form section */
.login__form-section--with-illustration {
  padding-top: 52px;
}

/* Family icon circle */
.login__form-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(27,45,94,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.login__form-icon svg {
  width: 26px; height: 26px;
  stroke: var(--navy);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login__form-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy-deep);
  text-align: center;
}
.login__form-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
  line-height: 1.5;
}

/* Step progress dots */
.login__step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login__step-dot {
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  transition: all 0.25s ease;
  width: 20px;
}
.login__step-dot.active {
  background: var(--navy);
  width: 28px;
}

/* ── Phone field with country picker ── */
.phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: white;
  transition: border-color 0.15s ease;
}
.phone-field:focus-within { border-color: var(--navy); }

.phone-field__country {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 12px;
  background: var(--bg);
  border: none;
  border-right: 1.5px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.phone-field__country:hover,
.phone-field__country:active { background: #e8ecf6; }

.phone-field__flag { font-size: 18px; line-height: 1; }
.phone-field__code { font-size: 13px; font-weight: 600; color: var(--navy); }
.phone-field__caret {
  width: 14px; height: 14px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.phone-field__input {
  flex: 1;
  padding: 13px 14px;
  border: none;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}
.phone-field__input::placeholder { color: var(--text-muted); }
.phone-field__input:focus { outline: none; }

/* Country picker dropdown */
.phone-field-wrap { position: relative; }

.country-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.country-picker.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.country-picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border-light);
}
.country-picker__option:last-child { border-bottom: none; }
.country-picker__option:hover { background: var(--bg); }
.country-picker__option.active { color: var(--navy); font-weight: 600; }
.country-picker__code { color: var(--text-muted); font-size: 13px; margin-left: auto; }

/* Hint below phone field */
.login__hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -8px;
}

/* Error line */
.login__error {
  font-size: var(--text-sm);
  color: var(--red);
  font-weight: var(--semibold);
  min-height: 18px;
  text-align: center;
}

/* Security note */
.login__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer divider */
.login__footer-divider {
  height: 1px;
  background: var(--border-light);
}

/* Powered by row */
.login__powered {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.login__powered > div > div:first-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.login__powered > div > div:last-child {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Desktop: compact hero, no illustration ── */
@media (min-width: 640px) {
  .login__hero {
    /* Card sits on top of the full-viewport bg image in .auth-wrap;
       hero only needs the navy gradient, bg image is already behind */
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
    min-height: auto;
    padding: 32px 24px 48px;
    overflow: hidden;
  }
  .login__hero::after {
    /* Keep the wave, clip-path works fine */
  }
  .login__illustration { display: none; }
  .login__form-section { padding-top: 28px !important; }
  .login__form-section--with-illustration { padding-top: 28px !important; }
}

/* ── Compact layout: short viewport phones (≤720px tall — Galaxy Note 2/3 era) ── */
@media (max-height: 720px) and (max-width: 640px) {
  .login__hero {
    padding: 24px 24px 60px;
    min-height: 220px;
    gap: 5px;
  }
  .login__hero-logo { width: 66px; height: 66px; }
  .login__illustration { display: none; }
  .login__form-section {
    gap: 10px;
    padding-top: 22px !important;
    padding-bottom: 12px;
  }
  .login__form-section--with-illustration { padding-top: 22px !important; }
  .login__form-icon { width: 40px; height: 40px; }
  .login__form-icon svg { width: 20px; height: 20px; }
  .login__form-title { font-size: 18px; }
  .login__form-sub { display: none; }
  .login__step-dots { display: none; }
}

/* Ultra-short: anything under 620px tall (address bar visible, very tight) */
@media (max-height: 620px) and (max-width: 640px) {
  .login__hero {
    padding: 16px 24px 44px;
    min-height: 180px;
    gap: 3px;
  }
  .login__hero-divider,
  .login__hero-tagline { display: none; }
  .login__form-section { gap: 8px; padding-bottom: 8px; }
  .login__security { display: none; }
}

/* ══════════════════════════════════════════════════════════
   PIN SCREEN
══════════════════════════════════════════════════════════ */
.pin-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s5);
  padding-top: calc(var(--s5) + env(safe-area-inset-top));
  padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom));
  gap: var(--s3);
  align-items: center;
}

.pin-screen__back {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--semibold);
  color: var(--navy);
  margin-bottom: var(--s1);
}
.pin-screen__back svg {
  width: 18px; height: 18px;
  stroke: var(--navy);
  stroke-width: 2;
}

.pin-screen__avatar {
  width: 64px; height: 64px;
  border-radius: var(--r-full);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: var(--text-lg);
  font-weight: var(--black);
  border: 3px solid var(--gold);
  margin-top: var(--s2);
  overflow: hidden;
}
.pin-screen__avatar img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--r-full);
}
.pin-screen__title {
  font-size: var(--text-lg);
  font-weight: var(--black);
  color: var(--navy);
  text-align: center;
}
.pin-screen__phone {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: -var(--s2);
}

/* PIN dots */
.pin-dots {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  padding: var(--s2) 0;
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  border: 2px solid #CBD5E1;
  background: transparent;
  transition: all 0.12s ease;
}
.pin-dot.filled {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.15);
}
.pin-dot.error {
  background: var(--red);
  border-color: var(--red);
}
.pin-dots.shake { animation: shake 0.4s ease; }
.pin-dots.loading .pin-dot.filled { animation: pulse 0.7s ease infinite; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-7px); }
  40%      { transform: translateX(7px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.pin-error-msg {
  font-size: var(--text-sm);
  color: var(--red);
  font-weight: var(--semibold);
  min-height: 18px;
  text-align: center;
}

/* Desktop: password input field */
.pin-desktop-field {
  display: none;
  width: 100%;
  max-width: 260px;
  padding: 14px var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 24px;
  letter-spacing: 10px;
  text-align: center;
  color: var(--navy);
  font-weight: var(--bold);
  background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.pin-desktop-field:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,45,94,0.08);
  outline: none;
}
@media (min-width: 769px) { .pin-desktop-field { display: block; } }

/* Mobile keypad */
.pin-keypad {
  display: none;
  width: 100%;
  max-width: 288px;
  margin: 0 auto;
}
@media (max-width: 768px) { .pin-keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; } }

.pin-key {
  aspect-ratio: 1.15;
  border-radius: var(--r-full);
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: all 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}
.pin-key:active, .pin-key.pressed {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(0.90);
}
.pin-key:active .pin-key__n,
.pin-key.pressed .pin-key__n { color: white; }
.pin-key:active .pin-key__l,
.pin-key.pressed .pin-key__l { color: rgba(255,255,255,0.5); }
.pin-key--empty {
  background: transparent; border: none;
  pointer-events: none;
}
.pin-key__n {
  font-size: 22px;
  font-weight: var(--bold);
  color: var(--navy);
  line-height: 1;
}
.pin-key__l {
  font-size: 8px;
  color: #94A3B8;
  letter-spacing: 1px;
  margin-top: 2px;
}

.forgot-link {
  font-size: var(--text-sm);
  color: var(--navy);
  font-weight: var(--semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: center;
  padding: var(--s2);
}

/* ══════════════════════════════════════════════════════════
   LOGIN SUCCESS SCREEN — impressive
══════════════════════════════════════════════════════════ */
.success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-deep) 0%, #0a1a3a 100%);
  padding: var(--s8) var(--s5);
  text-align: center;
  gap: var(--s4);
  position: relative;
  overflow: hidden;
}
/* Decorative blobs */
.success-screen::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.success-screen::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 200px; height: 200px;
  border-radius: var(--r-full);
  background: radial-gradient(circle, rgba(27,45,94,0.5) 0%, transparent 70%);
  pointer-events: none;
}

/* Avatar ring */
.success__avatar-wrap {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto;
  z-index: 1;
}
.success__ring {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  transform: rotate(-90deg);
}
.success__ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}
.success__ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4,0,0.2,1);
}
.success__ring-fill.go { stroke-dashoffset: 0; }

.success__photo {
  width: 110px; height: 110px;
  border-radius: var(--r-full);
  background: var(--navy-mid);
  border: 3px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: var(--text-2xl);
  font-weight: var(--black);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--spring), opacity 0.4s ease;
}
.success__photo.go { transform: scale(1); opacity: 1; }
.success__photo img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--r-full);
}

.success__badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--gold);
  border: 3px solid var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transform: scale(0);
  transition: transform 0.4s var(--spring) 0.85s;
}
.success__badge.go { transform: scale(1); }
.success__badge svg {
  width: 13px; height: 13px;
  stroke: var(--navy-deep);
  stroke-width: 3;
}

/* Text */
.success__greeting {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease 1s;
}
.success__greeting.go { opacity: 1; transform: translateY(0); }

.success__name {
  font-size: var(--text-2xl);
  font-weight: var(--black);
  color: white;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 1.1s;
}
.success__name.go { opacity: 1; transform: translateY(0); }

.success__role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: var(--text-sm);
  font-weight: var(--semibold);
  color: var(--gold);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease 1.2s;
}
.success__role.go { opacity: 1; }

/* SVG checkmark */
.success__check {
  z-index: 1;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.45s var(--spring) 1.35s;
}
.success__check.go { opacity: 1; transform: scale(1); }

/* Progress dots */
.success__dots {
  display: flex; gap: 8px;
  justify-content: center;
  z-index: 1;
}
.success__dot {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.2);
  transition: all 0.4s ease;
}
.success__dot.on { background: var(--gold); width: 20px; }

/* ══════════════════════════════════════════════════════════
   FORGOT PIN SCREENS
══════════════════════════════════════════════════════════ */
.forgot-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s5);
  padding-top: calc(var(--s5) + env(safe-area-inset-top));
  padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  gap: var(--s4);
}
.forgot-screen__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--semibold);
  color: var(--navy);
  align-self: flex-start;
}
.forgot-screen__back svg { width: 18px; height: 18px; stroke: var(--navy); stroke-width: 2; }
.forgot-screen__step-dots {
  display: flex; gap: var(--s2);
  justify-content: center;
}
.forgot-step-dot {
  height: 4px;
  border-radius: var(--r-full);
  background: var(--border);
  transition: all var(--fast);
  width: 24px;
}
.forgot-step-dot.active { background: var(--navy); width: 36px; }
.forgot-step-dot.done  { background: var(--gold); }

.forgot-screen__icon {
  font-size: 44px;
  text-align: center;
}
.forgot-screen__title {
  font-size: var(--text-xl);
  font-weight: var(--black);
  color: var(--navy);
  text-align: center;
}
.forgot-screen__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-top: -var(--s2);
}

/* Account type grid */
.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.account-type-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  cursor: pointer;
  transition: all var(--fast);
}
.account-type-card:active { transform: scale(0.96); }
.account-type-card.selected {
  border-color: var(--navy);
  background: var(--navy);
}
.account-type-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.account-type-card.selected .account-type-card__icon {
  background: rgba(255,255,255,0.1);
}
.account-type-card__label {
  font-size: var(--text-sm);
  font-weight: var(--bold);
  color: var(--navy);
  transition: color var(--fast);
}
.account-type-card.selected .account-type-card__label { color: white; }

/* Forgot success */
.forgot-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s3);
}
.forgot-success__anim {
  width: 110px; height: 110px;
  margin: 0 auto var(--s2);
}
.forgot-success__anim svg { width: 100%; height: 100%; }
.forgot-success__title {
  font-size: var(--text-xl);
  font-weight: var(--black);
  color: var(--navy);
}
.forgot-success__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}
.envelope-bounce { animation: env-bounce 0.6s ease 0.3s both; }
@keyframes env-bounce {
  0%  { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}

/* ══════════════════════════════════════════════════════════
   CLAIM SCREENS
══════════════════════════════════════════════════════════ */
.claim-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s5);
  padding-top: calc(var(--s5) + env(safe-area-inset-top));
  padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  gap: var(--s4);
}
.claim-screen__logo {
  width: 52px; height: 52px;
  border-radius: 13px;
  margin: 0 auto;
  display: block;
  box-shadow: var(--shadow-md);
}
.claim-invite {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}
.claim-invite__photo {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  border: 3px solid var(--gold);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: var(--text-xl);
  font-weight: var(--black);
  overflow: hidden;
}
.claim-invite__photo img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: var(--r-full);
}
.claim-invite__name {
  font-size: var(--text-xl);
  font-weight: var(--black);
  color: var(--navy);
  text-align: center;
}
.claim-invite__bar {
  width: 36px; height: 2.5px;
  background: var(--gold);
  border-radius: var(--r-full);
}
.claim-invite__info {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}
.claim-resp-list {
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding-top: var(--s3);
}
.claim-resp-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.claim-resp-item:last-child { border-bottom: none; }
.claim-resp-item__icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.claim-resp-item__icon svg {
  width: 14px; height: 14px;
  stroke: var(--green);
  stroke-width: 2.5;
}

/* Set PIN screen */
.set-pin-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s5) var(--s5);
  padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  gap: var(--s3);
  text-align: center;
}
.set-pin-screen__step {
  font-size: var(--text-xs);
  font-weight: var(--bold);
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.set-pin-screen__title {
  font-size: var(--text-xl);
  font-weight: var(--black);
  color: var(--navy);
}
.set-pin-screen__sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
/* Confirms which phone number this PIN belongs to — shown throughout
   PIN setup (both claim/first-time and PIN reset) so parents, teachers
   and admins never have to wonder or re-type it. */
.set-pin-screen__phone {
  font-size: var(--text-sm);
  color: var(--navy);
  background: var(--gold-pale);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-weight: var(--semibold);
}
.set-pin-screen__phone strong { font-weight: var(--bold); }
.pin-mismatch {
  font-size: var(--text-sm);
  color: var(--red);
  font-weight: var(--semibold);
  min-height: 18px;
}
/* ============================================================
   GODDY TABI — CLAIM SCREEN STYLES
   APPEND THIS ENTIRE BLOCK to the bottom of css/auth.css
   ============================================================ */

/* ── Full-page claim layout ─────────────────────────────── */
.claim-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-y: auto;
}

/* ── School header bar ──────────────────────────────────── */
.claim-page__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.claim-page__school-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-mid);
  flex-shrink: 0;
}
.claim-page__school-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.01em;
}

/* ── Main card ──────────────────────────────────────────── */
.claim-page__card {
  margin: 20px 16px 0;
  background: white;
  border-radius: 24px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(27,45,94,0.08);
}

/* ── Avatar ─────────────────────────────────────────────── */
.claim-page__avatar-wrap {
  margin-bottom: 4px;
}
.claim-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  font-weight: 800;
  letter-spacing: -0.5px;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── Child profile ──────────────────────────────────────── */
.claim-page__child-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 4px 0;
}
.claim-page__child-info {
  flex: 1;
  min-width: 0;
}
.claim-page__child-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1.2;
}
.claim-page__child-class {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}
.claim-page__child-teacher {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Sibling list ───────────────────────────────────────── */
.claim-page__siblings {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.claim-page__sibling {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.claim-page__sibling-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 100%;
  margin-top: -4px;
}

/* ── Greeting and headline ─────────────────────────────── */
.claim-page__greeting {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}
.claim-page__headline {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy-deep);
  text-align: center;
  line-height: 1.2;
}
.claim-page__role-pill {
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
}

/* ── Message text ───────────────────────────────────────── */
.claim-page__message {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  width: 100%;
}
.claim-page__message strong { color: var(--navy-deep); }

/* ── Capability list ────────────────────────────────────── */
.claim-cap-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.claim-cap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}
.claim-cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Assigned classes badge ─────────────────────────────── */
.claim-page__classes {
  width: 100%;
  padding: 10px 14px;
  background: rgba(27,45,94,0.06);
  border-radius: 10px;
  font-size: 13px;
  color: var(--navy);
  text-align: center;
}

/* ── Phone note (parent) ────────────────────────────────── */
.claim-page__phone-note {
  width: 100%;
  padding: 10px 14px;
  background: var(--blue-bg);
  border-radius: 10px;
  font-size: 13px;
  color: var(--blue);
  text-align: center;
}
.claim-page__phone-note strong { font-weight: 700; }

/* ── Divider ────────────────────────────────────────────── */
.claim-page__divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ── Approved badge (PIN reset) ─────────────────────────── */
.claim-page__approved-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
}
.claim-page__approved-badge svg { stroke: var(--green); }

/* ── Reset note ─────────────────────────────────────────── */
.claim-page__reset-note {
  width: 100%;
  padding: 12px 14px;
  background: var(--amber-bg);
  border-radius: 12px;
  font-size: 12px;
  color: var(--amber);
  line-height: 1.6;
  text-align: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.claim-page__footer {
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.claim-page__note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.claim-page__note strong { color: var(--text-secondary); }

/* ── Desktop ────────────────────────────────────────────── */
@media (min-width: 640px) {
  .claim-page {
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
  }
  .claim-page__header {
    width: 100%;
    max-width: 440px;
    border-radius: 16px 16px 0 0;
    position: static;
  }
  .claim-page__card {
    width: 100%;
    max-width: 440px;
    margin: 0;
    border-radius: 0;
  }
  .claim-page__footer {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 0 0 24px 24px;
    padding: 20px 24px 28px;
    margin-top: 0;
    box-shadow: 0 4px 24px rgba(27,45,94,0.08);
  }
}
