/**
 * Auth Redesign — Mobile App Style Authentication
 * Maurya Service · 2026
 * Poppins headings + Inter body · Role-based colors · Glassmorphism
 */

/* ================================================================
   ROLE COLOR TOKENS
   ================================================================ */
.ath-role-customer {
  --ath-primary:      #2563eb;
  --ath-primary-dark: #1d4ed8;
  --ath-primary-rgb:  37,99,235;
  --ath-grad-from:    #2563eb;
  --ath-grad-to:      #7c3aed;
  --ath-shadow:       rgba(37,99,235,0.30);
  --ath-focus-ring:   rgba(37,99,235,0.15);
  --ath-light-bg:     #dbeafe;
  --ath-light-text:   #1e40af;
}
.ath-role-vendor {
  --ath-primary:      #f97316;
  --ath-primary-dark: #ea580c;
  --ath-primary-rgb:  249,115,22;
  --ath-grad-from:    #f97316;
  --ath-grad-to:      #ef4444;
  --ath-shadow:       rgba(249,115,22,0.30);
  --ath-focus-ring:   rgba(249,115,22,0.15);
  --ath-light-bg:     #ffedd5;
  --ath-light-text:   #c2410c;
}
.ath-role-technician {
  --ath-primary:      #16a34a;
  --ath-primary-dark: #15803d;
  --ath-primary-rgb:  22,163,74;
  --ath-grad-from:    #16a34a;
  --ath-grad-to:      #0891b2;
  --ath-shadow:       rgba(22,163,74,0.30);
  --ath-focus-ring:   rgba(22,163,74,0.15);
  --ath-light-bg:     #dcfce7;
  --ath-light-text:   #15803d;
}
.ath-role-gateway {
  --ath-primary:      #fa5807;
  --ath-primary-dark: #c2410c;
  --ath-primary-rgb:  250,88,7;
  --ath-grad-from:    #fa5807;
  --ath-grad-to:      #c2410c;
  --ath-shadow:       rgba(250,88,7,0.30);
  --ath-focus-ring:   rgba(250,88,7,0.15);
  --ath-light-bg:     #ffedd5;
  --ath-light-text:   #c2410c;
}

/* ================================================================
   GLOBAL RESET FOR AUTH PAGES
   ================================================================ */
body.auth-redesign-page {
  margin: 0;
  padding: 0 !important;
  display: block !important;
  background: #0f172a !important;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Suppress old form_popup system on redesign pages */
body.auth-redesign-page .form-popup-overlay {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}

body.auth-redesign-page .location-bar,
body.auth-redesign-page #locationBar { display: none !important; }

.ath-wrap * {
  box-sizing: border-box;
}

/* ================================================================
   OUTER WRAPPER
   ================================================================ */
.ath-wrap {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  animation: athPageIn 0.4s ease both;
}

/* ================================================================
   DESKTOP LEFT PANEL (illustration)
   ================================================================ */
.ath-left {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--ath-grad-from) 0%, var(--ath-grad-to) 100%);
}

@media (min-width: 920px) {
  .ath-left {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
  }
}

/* Decorative circles */
.ath-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -150px; right: -150px;
  pointer-events: none;
}
.ath-left::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.ath-left-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 420px;
  width: 100%;
}

.ath-left-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.ath-left-logo-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  padding: 5px;
  flex-shrink: 0;
}
.ath-left-logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.ath-left-logo-name {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.ath-left-tagline {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
.ath-left-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.75;
  margin: 0 0 32px;
  font-weight: 400;
}

.ath-left-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.ath-left-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 500;
}
.ath-left-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ath-left-hero-img {
  width: 100%;
  max-width: 300px;
  margin: 32px auto 0;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  object-fit: cover;
  height: 180px;
}

/* ================================================================
   RIGHT PANEL (phone frame)
   ================================================================ */
.ath-right {
  flex: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #0f172a;
}

@media (min-width: 920px) {
  .ath-right {
    width: 440px;
    flex-shrink: 0;
    padding: 20px;
    align-items: center;
    background: #0f172a;
  }
}

/* ================================================================
   PHONE FRAME
   ================================================================ */
.ath-phone {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 920px) {
  .ath-phone {
    min-height: 0;
    height: auto;
    max-height: 840px;
    border-radius: 44px;
    overflow: hidden;
    box-shadow:
      0 0 0 10px #1e293b,
      0 0 0 11px #334155,
      0 40px 80px rgba(0,0,0,0.6);
  }
}

/* ================================================================
   PHONE SCROLL CONTAINER
   ================================================================ */
.ath-phone-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, var(--ath-grad-from) 0%, var(--ath-grad-to) 42%, var(--ath-grad-from) 100%);
}
.ath-phone-scroll::-webkit-scrollbar { display: none; }

/* ================================================================
   TOP BAR
   ================================================================ */
.ath-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  padding-top: max(36px, env(safe-area-inset-top, 36px));
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
}
@media (min-width: 920px) {
  .ath-topbar {
    padding-top: 20px;
  }
}

.ath-topbar-brand {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ath-topbar-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  padding: 2px;
  flex-shrink: 0;
}

.ath-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  min-height: 32px;
  border-radius: 999px;
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ath-primary);
  background: rgba(255,255,255,0.95);
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ath-topbar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.ath-hero {
  padding: 16px 24px 52px;
  flex-shrink: 0;
}

.ath-hero-eyebrow {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 6px;
}
.ath-hero-title {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ath-hero-line {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-weight: 400;
}

/* ================================================================
   FORM CARD
   ================================================================ */
.ath-card {
  flex: 1;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 26px 22px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  margin-top: -26px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  animation: athCardUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* ================================================================
   BACK LINK
   ================================================================ */
.ath-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 14px;
  padding: 4px 0;
  transition: color 0.15s;
}
.ath-back:hover { color: var(--ath-primary); }

/* ================================================================
   ALERTS (error / success)
   ================================================================ */
.ath-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 14px;
  animation: athFadeIn 0.3s ease;
}
.ath-alert-error  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ath-alert-success{ background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ath-alert-icon   { flex-shrink: 0; margin-top: 1px; }

/* ================================================================
   STEP INDICATOR
   ================================================================ */
.ath-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 22px;
}
.ath-step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  background: #fff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.ath-step-dot.active {
  border-color: var(--ath-primary);
  background: var(--ath-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--ath-shadow);
}
.ath-step-dot.done {
  border-color: var(--ath-primary);
  background: var(--ath-primary);
  color: #fff;
}
.ath-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  max-width: 30px;
  transition: background 0.35s ease;
}
.ath-step-line.done { background: var(--ath-primary); }

/* ================================================================
   STEP PANELS
   ================================================================ */
.ath-step-panel {
  display: none;
}
.ath-step-panel.active {
  display: block;
  animation: athSlideUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

/* ================================================================
   CARD SECTION HEADER
   ================================================================ */
.ath-card-header { margin-bottom: 18px; }
.ath-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.ath-card-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ================================================================
   FORM FIELDS — FLOATING LABELS
   ================================================================ */
.ath-field {
  position: relative;
  margin-bottom: 14px;
}
.ath-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ath-input {
  width: 100%;
  height: 56px;
  padding: 19px 16px 7px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.ath-input:focus {
  border-color: var(--ath-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ath-focus-ring);
}
.ath-input:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

/* Floating label */
.ath-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.2s ease;
  transform-origin: left top;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.ath-input:focus + .ath-label,
.ath-input:not(:placeholder-shown) + .ath-label {
  top: 10px;
  transform: translateY(0) scale(0.75);
  color: var(--ath-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* With icon */
.ath-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.2s;
}
.ath-field-wrap:focus-within .ath-field-icon { color: var(--ath-primary); }

.ath-input.has-icon {
  padding-left: 44px;
}
.ath-input.has-icon + .ath-label {
  left: 44px;
  max-width: calc(100% - 60px);
}

/* Password toggle */
.ath-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background 0.15s;
}
.ath-pw-toggle:hover { color: var(--ath-primary); background: rgba(0,0,0,0.04); }
.ath-input.has-toggle { padding-right: 44px; }

.ath-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
  padding-left: 4px;
}

/* ================================================================
   OTP BOX INPUTS
   ================================================================ */
.ath-otp-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 14px;
}
.ath-otp-box {
  width: 58px;
  height: 64px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  outline: none;
  caret-color: var(--ath-primary);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.1s;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
.ath-otp-box::-webkit-outer-spin-button,
.ath-otp-box::-webkit-inner-spin-button { -webkit-appearance: none; }
.ath-otp-box:focus {
  border-color: var(--ath-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ath-focus-ring);
  transform: scale(1.04);
}
.ath-otp-box.filled {
  border-color: var(--ath-primary);
  background: #fff;
}

.ath-otp-sent-info {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
}
.ath-otp-sent-info strong { color: #0f172a; font-weight: 600; }

.ath-otp-msg {
  font-size: 0.8125rem;
  margin: 4px 0 8px;
  min-height: 18px;
  text-align: center;
}
.ath-otp-msg.success { color: #15803d; }
.ath-otp-msg.error   { color: #b91c1c; }
.ath-otp-msg.pending { color: #64748b; }

/* ================================================================
   BUTTONS
   ================================================================ */
.ath-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 10px;
}
.ath-btn:last-child { margin-bottom: 0; }
.ath-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}
.ath-btn-primary {
  background: linear-gradient(135deg, var(--ath-grad-from) 0%, var(--ath-grad-to) 100%);
  color: #fff;
  box-shadow: 0 6px 20px var(--ath-shadow);
}
.ath-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--ath-shadow);
}
.ath-btn-primary:active:not(:disabled) { transform: translateY(0); }

.ath-btn-outline {
  background: #fff;
  color: var(--ath-primary);
  border: 1.5px solid var(--ath-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ath-btn-outline:hover:not(:disabled) {
  background: var(--ath-light-bg);
  transform: translateY(-1px);
}

.ath-btn-ghost {
  background: #f8fafc;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  height: 44px;
}
.ath-btn-ghost:hover:not(:disabled) { background: #f1f5f9; }

.ath-btn-sm {
  height: 40px;
  width: auto;
  padding: 0 16px;
  font-size: 0.8125rem;
  border-radius: 10px;
  margin-bottom: 0;
}

/* Loading spinner inside button */
.ath-btn.loading { pointer-events: none; opacity: 0.75; }
.ath-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: athSpin 0.65s linear infinite;
  flex-shrink: 0;
}
.ath-btn-outline .ath-spinner,
.ath-btn-ghost .ath-spinner {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--ath-primary);
}

/* OTP toggle button */
.ath-otp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ath-primary);
  background: var(--ath-light-bg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 12px;
}
.ath-otp-toggle:hover { filter: brightness(0.95); }

/* ================================================================
   PRIVACY CHECKBOX
   ================================================================ */
.ath-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.ath-privacy-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  accent-color: var(--ath-primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.ath-privacy-text {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.55;
}
.ath-privacy-text a {
  color: var(--ath-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

/* ================================================================
   FOOTER / LINKS
   ================================================================ */
.ath-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}
.ath-footer a {
  color: var(--ath-primary);
  font-weight: 600;
  text-decoration: none;
}
.ath-footer a:hover { text-decoration: underline; }

/* Footer signup link row (login gateway) */
.ath-footer-links-label {
  text-align: center;
  font-size: 0.6875rem;
  color: #94a3b8;
  margin: 14px 0 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.ath-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 6px;
  padding: 0 4px;
}
.ath-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
  flex: 1;
  justify-content: center;
  max-width: 110px;
}
.ath-footer-link:hover { transform: translateY(-1px); text-decoration: none; }
.ath-footer-link-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.ath-footer-link--customer {
  background: rgba(37,99,235,0.09);
  color: #2563eb;
}
.ath-footer-link--customer:hover { background: rgba(37,99,235,0.16); }
.ath-footer-link--vendor {
  background: rgba(234,88,12,0.09);
  color: #ea580c;
}
.ath-footer-link--vendor:hover { background: rgba(234,88,12,0.16); }
.ath-footer-link--tech {
  background: rgba(5,150,105,0.09);
  color: #059669;
}
.ath-footer-link--tech:hover { background: rgba(5,150,105,0.16); }

.ath-forgot {
  text-align: right;
  margin: -6px 0 12px;
}
.ath-forgot a {
  font-size: 0.8125rem;
  color: var(--ath-primary);
  text-decoration: none;
  font-weight: 500;
}
.ath-forgot a:hover { text-decoration: underline; }

.ath-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.ath-divider::before, .ath-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.ath-divider span {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* ================================================================
   RESEND OTP
   ================================================================ */
.ath-resend {
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  margin: 6px 0 10px;
}
.ath-resend-btn {
  background: none;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ath-primary);
  cursor: pointer;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ath-resend-btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: none;
}

/* ================================================================
   SOCIAL FOOTER
   ================================================================ */
.ath-social {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
.ath-social-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 12px;
}
.ath-social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.ath-social-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}
.ath-social-btn:hover {
  background: #f1f5f9;
  color: var(--ath-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ================================================================
   SUCCESS SCREEN
   ================================================================ */
.ath-success-screen {
  text-align: center;
  padding: 20px 0 12px;
}
.ath-success-icon {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--ath-grad-from), var(--ath-grad-to));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 28px var(--ath-shadow);
  animation: athPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.ath-success-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.ath-success-sub {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* ================================================================
   GATEWAY CARDS (main login.php)
   ================================================================ */
.ath-gateway-cards {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 6px;
}
.ath-gateway-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s ease;
}
.ath-gateway-card:hover {
  background: #fff;
  border-color: currentColor;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  transform: translateY(-1px);
}
.ath-gateway-card--customer:hover { border-color: #2563eb; }
.ath-gateway-card--vendor:hover   { border-color: #f97316; }
.ath-gateway-card--technician:hover { border-color: #16a34a; }

.ath-gateway-card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ath-gateway-card--customer .ath-gateway-card-icon  { background: #dbeafe; color: #2563eb; }
.ath-gateway-card--vendor .ath-gateway-card-icon    { background: #ffedd5; color: #f97316; }
.ath-gateway-card--technician .ath-gateway-card-icon{ background: #dcfce7; color: #16a34a; }

.ath-gateway-card-body { flex: 1; }
.ath-gateway-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px;
}
.ath-gateway-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
}
.ath-gateway-card-arrow { color: #94a3b8; flex-shrink: 0; }

/* ================================================================
   DEV HINT BOX
   ================================================================ */
.ath-dev-hint {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #92400e;
  margin-bottom: 12px;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes athPageIn   { from { opacity:0 } to { opacity:1 } }
@keyframes athCardUp   { from { opacity:0; transform:translateY(28px) } to { opacity:1; transform:translateY(0) } }
@keyframes athSlideUp  { from { opacity:0; transform:translateY(18px) } to { opacity:1; transform:translateY(0) } }
@keyframes athFadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes athPop      { from { transform:scale(0.65); opacity:0 } to { transform:scale(1); opacity:1 } }
@keyframes athSpin     { to { transform:rotate(360deg) } }

/* OTP Sent — success tick state on Send button */
.ath-sent-tick {
  background: #f0fdf4 !important;
  border-color: #6ee7b7 !important;
  color: #059669 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 3px rgba(5,150,105,.12) !important;
  transition: all .2s;
}
.ath-sent-tick svg { flex-shrink: 0; }

/* ================================================================
   MOBILE OVERRIDES
   ================================================================ */
@media (max-width: 919px) {
  body.auth-redesign-page { background: var(--ath-grad-from) !important; }
  .ath-phone { border-radius: 0; box-shadow: none; }
  .ath-card  { border-radius: 28px 28px 0 0; }
  .ath-phone-scroll { background: linear-gradient(170deg, var(--ath-grad-from) 0%, var(--ath-grad-to) 38%, #1e293b 100%); }
}

/* ================================================================
   SMALL SCREENS
   ================================================================ */
@media (max-width: 380px) {
  .ath-otp-box { width: 50px; height: 56px; font-size: 1.375rem; }
  .ath-otp-wrap { gap: 7px; }
  .ath-hero-title { font-size: 1.875rem; }
  .ath-card { padding: 22px 16px 14px; }
}
