/* Login, signup, forgot and reset pages */
:root {
  --bg: #060709;
  --text: #fff;
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.1);
  --field: rgba(255,255,255,.04);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ok: #4fb07f;
  --warn: #d4a24a;
  --bad: #f0716b;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 18%, #0c1120 0%, #070910 55%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

.a-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px clamp(16px, 5vw, 56px); }
.a-top .logo { display: block; height: 28px; width: auto; }
.a-top nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.a-top nav a:hover { color: #fff; }

.a-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 56px; }
.a-card { width: 100%; max-width: 400px; animation: aIn .6s var(--ease) both; }
@keyframes aIn { from { opacity: 0; transform: translateY(12px); } }
.a-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.a-card .sub { margin-top: 8px; color: var(--muted); }
.a-card .sub a, .a-foot a, .a-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .2s; }
.a-card .sub a:hover, .a-foot a:hover, .a-link:hover { border-color: #fff; }

.a-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.02); font-size: 14px; }
.a-plan b { font-weight: 500; }
.a-plan span { color: var(--muted); }
.a-plan a { font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.2); }

.a-discord {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; margin-top: 26px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 4px; background: rgba(255,255,255,.03); font-weight: 500;
  transition: border-color .2s, background .2s;
}
.a-discord:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.a-discord svg { width: 19px; height: 19px; fill: #fff; }
.a-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12.5px; color: var(--faint); }
.a-or::before, .a-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.a-form { display: grid; gap: 16px; }
.a-field { display: grid; gap: 7px; }
.a-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.85); }
.a-field label small { font-weight: 400; color: var(--faint); }
.a-field label a { font-weight: 400; font-size: 13px; color: var(--muted); }
.a-field label a:hover { color: #fff; }
.a-input { position: relative; }
.a-input input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 4px; background: var(--field);
  font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.a-input input::placeholder { color: var(--faint); }
.a-input input:focus { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); }
.a-input input.code { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.a-input .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border-radius: 3px; font-size: 12.5px; color: var(--muted); }
.a-input .eye:hover { color: #fff; background: rgba(255,255,255,.05); }
.a-input.pw input { padding-right: 64px; }
.a-field.bad input { border-color: rgba(240,113,107,.7); }
.a-err { display: none; font-size: 12.5px; color: var(--bad); }
.a-field.bad .a-err { display: block; }

.a-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.a-meter i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); transition: background .25s; }
.a-meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.a-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.a-meter[data-s="3"] i:nth-child(-n+3) { background: #b7c46a; }
.a-meter[data-s="4"] i { background: var(--ok); }
.a-hint { font-size: 12.5px; color: var(--faint); }

.a-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.a-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #fff; }
.a-check a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.a-check.bad { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: 4px;
  border-radius: 4px; background: #fff; color: #0a0a0a; font-weight: 500; transition: background .2s, opacity .2s;
}
.a-btn:hover { background: #e9e9e9; }
.a-btn[disabled] { opacity: .6; cursor: progress; }
.a-btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.a-btn:hover svg { transform: translateX(3px); }
.a-btn.ghost { background: none; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.a-btn.ghost:hover { border-color: rgba(255,255,255,.6); background: none; }

.a-captcha { min-height: 78px; }
.a-note { display: none; padding: 12px 14px; border-radius: 4px; font-size: 13.5px; line-height: 1.55; }
.a-note.show { display: block; }
.a-note.fail { border: 1px solid rgba(240,113,107,.4); background: rgba(240,113,107,.07); }
.a-note.info { border: 1px solid rgba(212,162,74,.4); background: rgba(212,162,74,.07); }
.a-note.good { border: 1px solid rgba(79,176,127,.4); background: rgba(79,176,127,.07); }
.a-note a, .a-note button { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }

.a-foot { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.a-done { display: none; text-align: center; }
.a-done.show { display: block; }
.a-done .tick { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 22px; border: 1px solid rgba(79,176,127,.5); border-radius: 50%; }
.a-done .tick svg { width: 24px; height: 24px; stroke: var(--ok); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-done h1 { font-size: 24px; }
.a-done p { margin: 10px auto 0; max-width: 340px; color: var(--muted); }
.a-done b { color: #fff; font-weight: 500; }
.a-done .a-btn { margin-top: 26px; }
.a-done .small { margin-top: 18px; font-size: 13.5px; }

.a-legal { padding: 0 16px 26px; text-align: center; font-size: 12.5px; color: var(--faint); }
.a-legal a { margin: 0 8px; }
.a-legal a:hover { color: #fff; }

@media (max-width: 560px) {
  .a-top { padding-top: 20px; }
  .a-top .logo { height: 24px; }
  .a-top nav a:first-child { display: none; }
  .a-main { place-items: start center; padding-top: 18px; }
  .a-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .a-card { animation: none; } }
