/* Premium Google sign-in pages — driver & customer login */
.auth-page-premium {
  background: linear-gradient(180deg, #e8f1ff 0%, #f4f8ff 42%, #f8fafc 100%);
}

/* Hero background — driver login (no site nav) */
.auth-page-hero.auth-page-premium {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(18, 76, 150, 0.78) 0%, rgba(7, 26, 68, 0.88) 100%),
    url("assets/img/web/hero-bg.webp") center / cover no-repeat;
}

.auth-page-hero .auth-hero-page {
  min-height: 100dvh;
  width: 100%;
  position: relative;
  overflow-x: clip;
}

.auth-page-hero .auth-hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.22), transparent 38%);
  pointer-events: none;
}

.auth-page-hero .auth-hero-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 24px 16px 28px;
}

.auth-page-premium #siteNavRoot {
  display: none;
}

.auth-page-hero .auth-back-pill {
  color: #0f172a;
}

.auth-page-hero .auth-card-premium {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 70px rgba(7, 20, 47, 0.28);
}

.auth-page-premium .auth-shell {
  min-height: 100dvh;
  padding: 20px 16px 28px;
}

.auth-page-premium .auth-card-premium {
  width: min(100%, 460px);
  padding: 22px 22px 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.auth-page-premium .auth-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.auth-page-premium .auth-back-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

.auth-page-premium .auth-brand-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-page-premium .auth-logo {
  min-width: 0;
}

.auth-page-premium .auth-logo img {
  height: 54px;
  width: auto;
  margin-bottom: 6px;
}

.auth-page-premium .auth-tagline {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.auth-page-premium .auth-hero-icon {
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #2563eb;
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.auth-page-premium .auth-hero-icon.customer {
  font-size: 28px;
}

.auth-page-premium .auth-hero-wheel {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
}

.auth-page-premium .auth-heading-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
}

.auth-page-premium .auth-card-premium h1 {
  margin: 0;
  color: #0b2550;
  font-size: clamp(30px, 7vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-page-premium .auth-grid-dots {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin-top: 4px;
  opacity: 0.35;
  background-image: radial-gradient(#94a3b8 1.4px, transparent 1.5px);
  background-size: 8px 8px;
}

.auth-page-premium .auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.auth-page-premium .auth-hint-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
}

.auth-page-premium .google-login-btn-premium {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-page-premium .google-login-btn-premium:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.auth-page-premium .google-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #ea4335;
  font-size: 16px;
}

.auth-page-premium .google-login-arrow {
  font-size: 14px;
  opacity: 0.95;
}

.auth-page-premium .auth-divider-premium {
  margin: 20px 0 16px;
}

.auth-page-premium .auth-divider-premium span {
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.auth-page-premium .auth-alt-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-page-premium .auth-alt-card:hover {
  border-color: #bfdbfe;
  background: #f1f7ff;
}

.auth-page-premium .auth-alt-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 16px;
}

.auth-page-premium .auth-alt-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-page-premium .auth-alt-copy small {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.auth-page-premium .auth-alt-copy strong {
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-page-premium .auth-alt-arrow {
  color: #64748b;
  font-size: 13px;
}

.auth-page-premium .auth-safety {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.auth-page-premium .auth-safety-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
}

.auth-page-premium .auth-safety-copy {
  display: grid;
  gap: 2px;
}

.auth-page-premium .auth-safety-copy strong {
  color: #0b2550;
  font-size: 14px;
}

.auth-page-premium .auth-safety-copy small {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.auth-page-premium .auth-status {
  margin-top: 14px;
  text-align: center;
}

/* Driver documents — sign-in & upload on hero background */
body.driver-docs-page.auth-page-hero .auth-hero-shell {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

body.driver-docs-page.auth-page-hero.has-driver-mobile-nav .auth-hero-shell {
  padding-bottom: calc(var(--driver-nav-height, 96px) + 20px + env(safe-area-inset-bottom, 0px));
}

body.driver-docs-page.auth-page-hero .driver-docs-card.auth-card-premium {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 70px rgba(7, 20, 47, 0.28);
}

body.driver-docs-page.auth-page-premium .driver-docs-card.auth-card-premium {
  width: min(100%, 460px);
  max-height: none;
}

body.driver-docs-page.auth-page-premium .driver-docs-card.auth-card-premium:has(.driver-docs-content:not([hidden])) {
  width: min(100%, 560px);
  max-height: 92vh;
  overflow-y: auto;
}

body.driver-docs-page.auth-page-premium .driver-docs-signin {
  text-align: left;
}

body.driver-docs-page.auth-page-premium .driver-docs-signin .auth-alt-card {
  margin-top: 18px;
}

body.driver-docs-page.auth-page-premium .driver-docs-signin .google-login-btn-premium {
  margin-top: 0;
}

@media (max-width: 480px) {
  .auth-page-premium .auth-card-premium {
    padding: 18px 16px 20px;
    border-radius: 20px;
  }

  .auth-page-premium .auth-hero-icon {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
}

/* Shared premium bits — desktop keeps current look */
.auth-page-premium .auth-role-pill {
  display: none;
}

.auth-page-premium .auth-hero-orbit {
  display: none;
}

.auth-page-premium .auth-title-accent {
  color: inherit;
}

/* Mobile-only login UI (reference style) */
@media (max-width: 768px) {
  .auth-page-hero.auth-page-premium {
    background: #fff;
  }

  .auth-page-hero .auth-hero-page::before {
    background:
      radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.12), transparent 34%),
      radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.08), transparent 28%);
  }

  .auth-page-hero .auth-hero-shell,
  .auth-page-premium .auth-shell {
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }

  .auth-page-hero .auth-card-premium,
  .auth-page-premium .auth-card-premium {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 4px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-page-premium .auth-back-pill {
    margin-bottom: 16px;
    gap: 8px;
    font-size: 13px;
  }

  .auth-page-premium .auth-back-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }

  .auth-page-premium .auth-brand-block {
    align-items: center;
    margin-bottom: 10px;
  }

  .auth-page-premium .auth-logo img {
    height: 48px;
    margin-bottom: 4px;
  }

  .auth-page-premium .auth-tagline {
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
  }

  .auth-page-premium .auth-hero-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    font-size: 34px;
    background: radial-gradient(circle at 40% 35%, #60a5fa, #2563eb 58%, #1d4ed8);
    color: #fff;
    box-shadow:
      0 0 0 8px rgba(37, 99, 235, 0.08),
      0 14px 30px rgba(37, 99, 235, 0.28);
  }

  .auth-page-premium .auth-hero-orbit {
    display: block;
    position: absolute;
    inset: -10px;
    border: 1.5px solid rgba(96, 165, 250, 0.45);
    border-radius: 50%;
    animation: authOrbitSpin 10s linear infinite;
  }

  .auth-page-premium .auth-hero-orbit-2 {
    inset: -18px;
    border-color: rgba(147, 197, 253, 0.35);
    animation-duration: 14s;
    animation-direction: reverse;
  }

  .auth-page-premium .auth-hero-orbit::before,
  .auth-page-premium .auth-hero-orbit::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
  }

  .auth-page-premium .auth-hero-orbit::before {
    top: 8%;
    right: 18%;
  }

  .auth-page-premium .auth-hero-orbit::after {
    bottom: 12%;
    left: 10%;
  }

  .auth-page-premium .auth-hero-wheel {
    inset: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    bottom: 14px;
    right: 14px;
  }

  .auth-page-premium .auth-heading-block {
    display: grid;
    gap: 10px;
    margin: 4px 0 14px;
  }

  .auth-page-premium .auth-grid-dots {
    display: none;
  }

  .auth-page-premium .auth-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
  }

  .auth-page-premium .auth-role-pill i {
    font-size: 11px;
  }

  .auth-page-premium .auth-card-premium h1 {
    font-size: clamp(32px, 9vw, 40px);
    color: #0f172a;
    letter-spacing: -0.04em;
  }

  .auth-page-premium .auth-title-accent {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .auth-page-premium .auth-hint {
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 14px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
  }

  .auth-page-premium .auth-hint-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
  }

  .auth-page-premium .google-login-btn-premium {
    min-height: 58px;
    border-radius: 18px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
  }

  .auth-page-premium .google-mark {
    width: 36px;
    height: 36px;
  }

  .auth-page-premium .auth-divider-premium {
    margin: 18px 0 14px;
  }

  .auth-page-premium .auth-divider-premium::before,
  .auth-page-premium .auth-divider-premium::after {
    background: #e2e8f0;
  }

  .auth-page-premium .auth-divider-premium span {
    background: #fff;
    color: #94a3b8;
  }

  .auth-page-premium .auth-alt-card {
    margin-top: 10px;
    padding: 14px 14px;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .auth-page-premium .auth-alt-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .auth-page-premium .auth-alt-copy small {
    font-size: 12px;
  }

  .auth-page-premium .auth-alt-copy strong {
    font-size: 14px;
  }

  .auth-page-premium .auth-safety {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    background: #f8fafc;
    border-top: 1px solid #e8eef5;
  }

  .auth-page-premium .auth-safety-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .auth-page-premium .auth-safety-copy strong {
    font-size: 14px;
  }

  .auth-page-premium .auth-safety-copy small {
    font-size: 11px;
  }
}

@keyframes authOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .auth-page-premium .auth-hero-orbit,
  .auth-page-premium .auth-hero-orbit-2 {
    animation: none;
  }
}
