/* OptionTurtle auth page — branded visual refresh only */
.auth-page-root {
  --auth-ink: #0f172a;
  --auth-muted: #64748b;
  --auth-line: #e2e8f0;
  --auth-primary: #4f46e5;
  --auth-primary-dark: #4338ca;
  width: 100%;
  min-height: calc(100vh - 72px);
  padding-bottom: 0 !important;
  background: #f8fafc;
  color: var(--auth-ink);
}

/* This page intentionally has no shared fixed auth footer. Neutralize the global
   auth-page footer reservation and inherited card viewport constraint. */
.auth-page-root.auth-page {
  padding-bottom: 0 !important;
}
.auth-page-root .auth-card {
  max-height: none !important;
  overflow: visible !important;
}

.auth-desktop-layout { display: block; }
.auth-mobile-layout { display: none; }

.auth-middle {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  width: min(1120px, calc(100% - 40px));
  min-height: 610px;
  margin: 36px auto 24px;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 58px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(129, 140, 248, .32), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(56, 189, 248, .15), transparent 30%),
    linear-gradient(155deg, #111827 0%, #172554 100%);
}
.auth-brand-panel::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.auth-brand-content { position: relative; z-index: 1; max-width: 500px; }
.auth-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.auth-brand-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 5px rgba(129, 140, 248, .12);
}
.auth-brand-title {
  margin: 20px 0 0;
  color: #f8fafc;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.045em;
}
.auth-brand-copy {
  max-width: 470px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.75;
}
.auth-brand-features { display: grid; gap: 18px; margin-top: 42px; }
.auth-brand-feature {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
}
.auth-brand-feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(165, 180, 252, .28);
  border-radius: 10px;
  background: rgba(99, 102, 241, .14);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.auth-brand-feature strong {
  display: block;
  margin-top: 1px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 650;
}
.auth-brand-feature span:last-child {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.auth-access-panel {
  display: grid;
  place-items: center;
  padding: 44px;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, .07), transparent 34%),
    #fff;
}
.auth-card { width: 100%; max-width: 410px; }
.auth-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--auth-primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.auth-card-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 0 4px #eef2ff;
}
.auth-card-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.auth-card-copy {
  margin: 10px 0 26px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-provider-wrap {
  padding: 5px;
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #f8fafc;
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #202124;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .05);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.google-btn__logo {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}
.google-btn__logo svg { display: block; }
.google-btn__text { display: inline-block; }
.google-btn:hover {
  transform: translateY(-1px);
  border-color: #a5b4fc;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .10);
}
.google-btn:active { transform: translateY(0); }
.google-btn:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .18);
  outline-offset: 2px;
}
.auth-consent {
  margin: 24px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}
.auth-consent a {
  color: var(--auth-primary-dark);
  font-weight: 600;
}
.auth-page-legal {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding-bottom: 0 !important;
}
.auth-legal-inner {
  padding: 13px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
}
.auth-legal-inner strong { color: #475569; }

/* Dedicated mobile auth composition: CTA is intentionally above the fold. */
@media (max-width: 700px) {
  .auth-desktop-layout { display: none; }
  .auth-mobile-layout {
    display: block;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 14px 14px 18px;
  }

  .auth-page-root.auth-page {
    min-height: auto;
  }

  .auth-mobile-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 22px;
    border-radius: 16px 16px 0 0;
    color: #fff;
    background:
      radial-gradient(circle at 88% 8%, rgba(129, 140, 248, .26), transparent 32%),
      linear-gradient(155deg, #111827 0%, #172554 100%);
  }

  .auth-mobile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .auth-mobile-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, .12);
  }

  .auth-mobile-hero h1 {
    margin: 12px 0 0;
    color: #f8fafc;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.08;
    letter-spacing: -.04em;
  }
  .auth-mobile-hero p {
    margin: 10px 0 0;
    max-width: 360px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.55;
  }

  .auth-mobile-card {
    padding: 22px 20px 20px;
    border: 1px solid var(--auth-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .09);
  }
  .auth-mobile-card h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
  }
  .auth-mobile-copy {
    margin: 7px 0 16px;
    color: var(--auth-muted);
    font-size: 13px;
  }
  .auth-mobile-card .auth-provider-wrap { padding: 4px; }
  .auth-mobile-card .google-btn { min-height: 48px; }
  .auth-mobile-card .auth-consent {
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.55;
  }

  .auth-mobile-legal {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
  }
  .auth-mobile-legal strong { color: #475569; }
}

@media (max-width: 380px) {
  .auth-mobile-layout { padding-left: 10px; padding-right: 10px; }
  .auth-mobile-hero { padding: 18px 16px 19px; }
  .auth-mobile-card { padding: 19px 16px 18px; }
  .auth-mobile-card h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .google-btn { transition: none; }
}
