:root {
  color-scheme: light;
  --ink: #202127;
  --muted: #6b6d78;
  --line: #e7e7eb;
  --surface: #fff;
  --page: #f8f9fc;
  --accent: #5f58df;
  --accent-dark: #4e47c8;
  --focus: #5f58df;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(ellipse at 50% 18%, #fff 0, #fff 32%, var(--page) 76%); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: absolute; z-index: 5; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-160%); border-radius: 8px; color: #fff; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.topbar { width: min(100% - 48px, 1120px); height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(32,33,39,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.brand img { border-radius: 8px; object-fit: contain; }
.back-link { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .18s ease; }
.back-link:hover { color: var(--ink); }
.login-shell { width: min(100% - 40px, 456px); margin: clamp(48px, 9vh, 92px) auto 0; }
.login-intro { margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #737583; font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #8acfb5; box-shadow: 0 0 0 4px #eaf7f1; }
h1 { margin: 17px 0 8px; font-size: clamp(36px, 6vw, 48px); line-height: 1.05; letter-spacing: -.055em; font-weight: 720; }
.login-intro p { max-width: 410px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.login-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 18px 48px rgba(36,38,53,.055), 0 2px 6px rgba(36,38,53,.025); }
.provider-buttons { display: grid; gap: 10px; }
.provider-button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #8b8d97; border-radius: 12px; color: #25262c; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.provider-button:hover { transform: translateY(-1px); border-color: #767984; background: #fcfcfd; box-shadow: 0 5px 14px rgba(32,33,39,.06); }
.provider-button:active { transform: translateY(0); }
.provider-button:disabled { opacity: .58; cursor: not-allowed; transform: none; box-shadow: none; }
.provider-note { margin: 12px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.google-mark { font-size: 19px; line-height: 1; font-weight: 800; background: conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 50%,#fbbc05 50% 75%,#ea4335 75%); color: transparent; background-clip: text; -webkit-background-clip: text; }
.microsoft-mark { width: 16px; height: 16px; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f25022; }.microsoft-mark i:nth-child(2) { background: #7fba00; }.microsoft-mark i:nth-child(3) { background: #00a4ef; }.microsoft-mark i:nth-child(4) { background: #ffb900; }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 23px 0 21px; color: #747681; font-size: 12px; }
.divider span:first-child, .divider span:last-child { height: 1px; background: var(--line); }
form { display: grid; gap: 9px; }
label { margin-top: 2px; color: #3d3e45; font-size: 13px; font-weight: 600; }
input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #8b8d97; border-radius: 12px; outline: none; color: var(--ink); background: #fff; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
input::placeholder { color: var(--muted); }
input:hover { border-color: #767984; }
input:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(95,88,223,.14); }
#otp { text-align: center; font-size: 20px; font-weight: 650; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.primary-button { min-height: 48px; margin-top: 5px; border: 0; border-radius: 12px; color: #fff; background: #222329; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.primary-button:hover { transform: translateY(-1px); background: #35363d; box-shadow: 0 8px 18px rgba(32,33,39,.13); }
.primary-button:active { transform: translateY(0); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.text-button { justify-self: center; margin-top: 5px; padding: 7px 10px; border: 0; color: #625bd3; background: transparent; font-size: 13px; cursor: pointer; }
.text-button:hover { color: #3f39b0; text-decoration: underline; }
.notice, .error { margin-top: 16px; padding: 12px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.notice { color: #315c4c; background: #eff8f3; border: 1px solid #d4eddf; }
.error { color: #9b353c; background: #fff3f3; border: 1px solid #f1d4d6; }
.signed-in { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px; border: 1px solid #d4eddf; border-radius: 12px; background: #eff8f3; }
.checkout-actions { margin-top: 14px; }
.checkout-actions p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkout-actions .primary-button { width: 100%; }
.signed-in strong { font-size: 14px; }.signed-in p { margin: 4px 0 0; color: #597568; font-size: 12px; line-height: 1.5; }
.success-mark { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; color: #267251; background: #d4eddf; font-size: 14px; font-weight: 800; }
.privacy-note { margin: 21px 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: center; }
.support-link { display: block; width: fit-content; margin: 13px auto 0; color: #5658a8; font-size: 12px; text-underline-offset: 3px; }
.page-footer { width: min(100% - 48px, 1120px); margin: 66px auto 18px; padding-top: 15px; border-top: 1px solid rgba(32,33,39,.08); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .topbar { width: calc(100% - 32px); height: 64px; }
  .back-link { font-size: 12px; }
  .login-shell { width: calc(100% - 32px); margin-top: 42px; }
  .login-card { padding: 18px; border-radius: 16px; }
  .login-intro p { font-size: 14px; }
  .page-footer { width: calc(100% - 32px); margin-top: 48px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
