:root {
    --ink: #f7f8ff;
    --muted: #a8acc2;
    --soft: #6f7591;
    --bg: #0e1124;
    --surface: #191d35;
    --line: rgba(215,221,255,.12);
    --yellow: #ffd24f;
    --aqua: #71e7d1;
    --danger: #ff8091;
    --success: #8aebca;
    --shadow: 0 24px 70px rgba(0,0,0,.34);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background:
        radial-gradient(circle at 82% 4%, rgba(93,72,159,.38), transparent 25rem),
        radial-gradient(circle at 5% 88%, rgba(18,120,132,.23), transparent 24rem),
        var(--bg);
}
button, input, select { font: inherit; }
.auth-shell { width: min(430px, 100%); }
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 24px;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: -.035em;
}
.brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
.auth-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(192,205,255,.16);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37,43,78,.96), rgba(24,28,53,.97));
    box-shadow: var(--shadow);
}
.auth-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -105px;
    top: -120px;
    border: 42px solid rgba(113,231,209,.10);
    border-radius: 50%;
    pointer-events: none;
}
.auth-card > * { position: relative; z-index: 1; }
.eyebrow {
    display: block;
    color: var(--aqua);
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .68rem;
    font-weight: 800;
}
h1 { margin: 7px 0 6px; font-size: 1.75rem; letter-spacing: -.05em; }
.subtitle { margin: 0 0 24px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.notice, .error {
    margin: 0 0 18px;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: .78rem;
    line-height: 1.45;
}
.notice { border: 1px solid rgba(113,231,209,.25); background: rgba(113,231,209,.08); color: var(--success); }
.error { border: 1px solid rgba(255,128,145,.25); background: rgba(255,128,145,.08); color: #ffb3be; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--muted); font-size: .75rem; font-weight: 750; }
.input-wrap { position: relative; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0 45px 0 13px;
    color: var(--ink);
    background: #11162d;
    border: 1px solid rgba(215,221,255,.16);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: var(--ink);
    background: #11162d;
    border: 1px solid rgba(215,221,255,.16);
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field input[type="text"], .field input[type="email"] { padding-right: 13px; }
.field input:focus, .field select:focus { outline: none; border-color: rgba(113,231,209,.68); box-shadow: 0 0 0 3px rgba(113,231,209,.10); }
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.toggle-password:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.remember-row { display: flex; align-items: center; gap: 9px; margin: 2px 0 20px; color: var(--muted); font-size: .78rem; cursor: pointer; user-select: none; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--yellow); }
.auth-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--yellow);
    color: #17152b;
    font-weight: 850;
    box-shadow: 0 10px 21px rgba(255,196,61,.16);
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
.auth-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.auth-button:focus-visible, .toggle-password:focus-visible, a:focus-visible { outline: 3px solid rgba(113,231,209,.45); outline-offset: 2px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-links a { color: var(--aqua); font-size: .78rem; font-weight: 750; text-decoration: none; }
.auth-links a:hover { color: var(--ink); text-decoration: underline; }
.auth-help { margin: 19px 0 0; color: var(--muted); text-align: center; font-size: .76rem; line-height: 1.5; }
.requirements { margin: -2px 0 18px; color: var(--soft); font-size: .72rem; line-height: 1.45; }
.secure-note { margin: 16px 2px 0; color: var(--soft); text-align: center; font-size: .68rem; line-height: 1.45; }
@media (max-width: 480px) {
    body { padding: 18px 12px; }
    .auth-card { padding: 24px 19px; border-radius: 19px; }
    h1 { font-size: 1.55rem; }
}
