/* Account pages (login, signup, 2FA, email, password, authorize, checkout, 404). Uses the tokens from site.css. */
.sprite{position:absolute;width:0;height:0;overflow:hidden}

.top{border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:68px}
.top .right{display:flex;gap:20px;align-items:center;font-size:15px;color:var(--grey)}
.top .right a:hover,.top .right button:hover{color:var(--ink)}
.linkish{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}

.auth{min-height:calc(100vh - 69px);display:flex;align-items:flex-start;justify-content:center;padding:clamp(40px,10vh,104px) 16px 64px}
.card{width:100%;max-width:440px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:clamp(24px,5vw,36px)}
.card h1{font-size:clamp(28px,4vw,34px);font-weight:700;line-height:1.12;letter-spacing:-.02em;color:var(--head)}
.card .lead{margin-top:12px;color:var(--grey);font-size:16px;line-height:1.55}
.card .lead b{color:var(--ink);font-weight:600}

form{margin-top:28px;display:flex;flex-direction:column;gap:18px}
label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500;color:var(--soft)}
label .hint{color:var(--dim);font-size:13px;font-weight:400}
input{height:46px;padding:0 14px;border-radius:10px;border:1px solid var(--line-2);background:var(--black);color:var(--ink);font:inherit;font-size:16px;transition:border-color .15s,box-shadow .15s}
input::placeholder{color:var(--dim)}
input:hover{border-color:#36415A}
input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
input[aria-invalid="true"]{border-color:var(--red)}
input[readonly]{color:var(--grey)}
form .btn{width:100%;justify-content:center;height:48px;font-size:16px;cursor:pointer;font-family:inherit}
.btn:disabled{opacity:.6;cursor:default}
.form-error{border:1px solid rgba(243,163,163,.35);background:rgba(243,163,163,.08);color:#F6C4C4;border-radius:10px;padding:12px 14px;font-size:14px}
.form-ok{border:1px solid rgba(127,209,166,.35);background:rgba(127,209,166,.08);color:#BFE8D2;border-radius:10px;padding:12px 14px;font-size:14px}
.alt{margin-top:24px;font-size:15px;color:var(--grey)}
.alt a{color:var(--ink);border-bottom:1px solid var(--accent)}
.alt a:hover{color:#fff;border-color:var(--accent-hi)}

/* Continue with GitHub / Google (assets/social.js) */
.social{margin-top:32px;display:flex;flex-direction:column;gap:10px}
.social .btn{width:100%;height:48px;font-size:16px}
.social:not([hidden]) + form{margin-top:0}
.or{display:flex;align-items:center;gap:12px;margin:14px 0 18px;font-size:13px;color:var(--dim)}
.or::before,.or::after{content:"";flex:1;border-top:1px solid var(--line-2)}

/* approval page */
.pair{display:flex;align-items:center;gap:14px;margin-bottom:32px}
.pair svg{width:52px;height:52px}
.pair .dots{display:flex;gap:5px}
.pair .dots i{width:5px;height:5px;border-radius:50%;background:var(--line-2)}
.pair .avatar{width:52px;height:52px;border-radius:14px;border:1px solid var(--line-2);background:var(--accent-soft);display:grid;place-items:center;font-size:20px;font-weight:600;color:var(--ink);text-transform:uppercase}
.facts{list-style:none;padding:0;margin:24px 0 0;display:flex;flex-direction:column;gap:12px;color:#C9D1DE;font-size:15px}
.facts li{padding-left:24px;position:relative}
.facts li::before{content:"";position:absolute;left:3px;top:.5em;width:10px;height:5px;border-left:2px solid var(--ok);border-bottom:2px solid var(--ok);transform:rotate(-45deg)}
.actions{margin-top:28px;display:flex;flex-direction:column;gap:10px}
.actions .btn{justify-content:center;height:48px;font-size:16px;cursor:pointer;font-family:inherit;background:transparent}
.actions .btn:hover{background:var(--panel-2)}
.actions .btn.paper{background:var(--accent-btn)}
.actions .btn.paper:hover{background:var(--accent-btn-hover)}
.small{margin-top:22px;font-size:14px;color:var(--grey)}
.small a,.small button{color:var(--ink);border-bottom:1px solid var(--line-2)}
.small a:hover,.small button:hover{border-color:var(--accent)}
.spinner{width:22px;height:22px;border-radius:50%;border:2px solid var(--line-2);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
[hidden]{display:none !important}

/* account pages under the sticky site header (site.css .nav) */
.with-nav{padding-top:clamp(40px,8vh,88px)}
.auth.with-nav{min-height:auto;padding-bottom:96px}
.nav-actions .linkish{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;border-radius:8px;font-size:14px;font-weight:500;color:var(--soft)}
.nav-actions .linkish:hover{color:#fff;background:var(--panel-2)}

/* setup steps (verify-email, setup-2fa, 2fa) */
.steps{list-style:none;padding:0;margin:0 0 24px;display:flex;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.steps li{display:flex;align-items:center;gap:8px}
.steps li::before{content:"";width:8px;height:8px;border-radius:50%;border:1px solid var(--line-2)}
.steps li.on{color:var(--accent-hi)}
.steps li.on::before{background:var(--accent);border-color:var(--accent)}
.steps li.done{color:var(--grey)}
.steps li.done::before{background:var(--ok);border-color:var(--ok)}
.steps li+li{margin-left:6px}
.howto{margin:20px 0 0;padding-left:20px;color:#C9D1DE;font-size:15px;display:flex;flex-direction:column;gap:8px}
.howto a{color:var(--ink);border-bottom:1px solid var(--accent)}
.qr{display:block;width:200px;height:200px;margin:18px 0 0;padding:0;border-radius:10px;background:#fff;image-rendering:pixelated}
.qr[hidden]{display:none}
.qr-alt{margin-top:16px;color:var(--grey);font-size:14px}
.qr-alt a{color:var(--ink);border-bottom:1px solid var(--accent)}
.secret{display:block;margin-top:10px;padding:12px 14px;border:1px dashed var(--line-2);border-radius:10px;background:var(--black);letter-spacing:.12em;word-break:break-all;font-size:15px;user-select:all;font-family:var(--mono)}
.backup-codes{list-style:none;padding:16px 18px;margin:24px 0 0;border:1px solid var(--line-2);border-radius:10px;background:var(--black);display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;font-family:var(--mono);font-size:16px;letter-spacing:.06em;user-select:all}
.small .linkish{color:var(--ink);border-bottom:1px solid var(--line-2)}

@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.5s}}
.turnstile{margin:4px 0 16px;min-height:65px}
/* Verify-email: the link's countdown */
.countdown{margin:16px 0 0;padding:10px 14px;border:1px solid var(--line-2);border-radius:10px;font-size:14px;color:var(--grey);font-variant-numeric:tabular-nums}
.countdown.soon{color:var(--amber);border-color:rgba(242,181,68,.35)}
.countdown.expired{color:var(--red);border-color:rgba(243,163,163,.35)}
@media (max-width:900px){.nav-actions .linkish{display:none}}

/* login, signup, setup steps and 404: the site's moving hero glow behind the form (keyframes in site.css) */
.auth{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse 60% 70% at 50% 30%,transparent 20%,var(--black) 80%),var(--dots)}
.auth::before,.auth::after{content:"";position:absolute;border-radius:50%;filter:blur(100px);opacity:.26;pointer-events:none;z-index:-1;will-change:transform}
.auth::before{width:560px;height:560px;left:-180px;top:-200px;background:#2F6FED;animation:driftA 16s ease-in-out infinite alternate,hueA 12s ease-in-out infinite alternate}
.auth::after{width:480px;height:480px;right:-160px;top:120px;background:#7C5CFF;animation:driftB 20s ease-in-out infinite alternate,hueB 14s ease-in-out infinite alternate}
@media (prefers-reduced-motion:reduce){.auth::before,.auth::after{animation:none}}
