@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f4f6fb;
  --surface: rgba(255, 255, 255, .9);
  --surface-hover: rgba(255, 255, 255, .98);
  --text: #1a2233;
  --muted: #606b82;
  --primary: #6c5ce7;
  --primary-hover: #5948d8;
  --border: rgba(15, 23, 42, .08);
}

html.dark {
  color-scheme: dark;
  --canvas: #0f1220;
  --surface: rgba(255, 255, 255, .06);
  --surface-hover: rgba(255, 255, 255, .10);
  --text: #edf1f8;
  --muted: #a6b0c2;
  --border: rgba(255, 255, 255, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(13px, .82rem + .08vw, 14.5px); line-height: 1.48; letter-spacing: -.012em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.skip { position: fixed; top: -100px; background: #fff; padding: 10px; z-index: 5; }
.skip:focus { top: 10px; left: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.auth-shell { position: relative; z-index: 1; width: min(448px, calc(100% - 32px)); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; animation: fade-in .3s ease-out both; }
.auth-brand-header { margin-bottom: 32px; text-align: center; }
.brand { display: inline-flex; justify-content: center; align-items: center; gap: 10px; color: var(--text); font-size: 30px; font-weight: 700; line-height: 1; }
.brand:hover { color: var(--text); }
.brand img { flex: 0 0 36px; }
.purple { color: var(--primary); }
.description { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.auth-card { padding: 32px; background: var(--surface); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border: 1px solid var(--border); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.label-text { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.optional { font-weight: 400; font-size: 11px; }
input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; color: var(--text); background: var(--canvas); font-size: 14px; transition: border-color .15s ease; }
input::placeholder { color: var(--muted); opacity: .5; }
input:focus-visible { border-color: var(--primary); outline: 2px solid rgba(108, 92, 231, .2); outline-offset: 1px; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; }
.button { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 41px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; transition: background .15s ease; }
.button:hover { background: var(--primary-hover); }
button:disabled { opacity: .5; cursor: not-allowed; }
.minor-link { display: block; color: var(--muted); text-align: right; font-size: 12px; margin: 0 0 20px; }
.minor-link:hover { color: var(--primary); }
.alternative { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.alternative:empty { display: none; }
.alternative a { margin-left: 4px; }
.privacy-note { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 24px 6px 0; text-align: center; }
.auth-footer { color: var(--muted); font-size: 10px; display: flex; gap: 14px; justify-content: center; margin: 16px 0 0; flex-wrap: wrap; }
.secondary-button { display: block; width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; margin-top: 12px; background: var(--surface-hover); color: var(--text); font-size: 14px; }
.secondary-button:hover { background: var(--canvas); }
.plain-button { display: block; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 12px; margin: 6px auto 0; }
.verification-address { color: var(--text); font-size: 14px; overflow-wrap: anywhere; margin: 0 0 20px; }
.status-error, .status-success { border-radius: 8px; padding: 12px 14px; font-size: 12px; line-height: 1.6; margin: 0 0 20px; }
.status-error { background: #fff2f2; border: 1px solid #f0caca; color: #a72b2b; }
.status-success { background: #eaf5f1; border: 1px solid #c5e5d8; color: #23644d; }
.status-neutral { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.status-neutral:empty { display: none; }
.noscript { font-size: 12px; color: #a72b2b; text-align: center; }
html.dark .auth-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
html.dark .skip { background: var(--canvas); }
html.dark .status-error { background: rgba(217, 75, 75, .10); border-color: rgba(217, 75, 75, .30); color: #f59d9d; }
html.dark .status-success { background: rgba(20, 143, 119, .10); border-color: rgba(20, 143, 119, .30); color: #7ad5b5; }
html.dark .noscript { color: #f59d9d; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) { .auth-card { padding: 24px; } .brand { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
