@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #080d12;
    --panel: rgba(15, 24, 31, .88);
    --line: rgba(165, 190, 201, .14);
    --text: #eef5f5;
    --muted: #91a1a7;
    --mint: #78f0c4;
    --red: #ff8b89;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% 10%, rgba(32, 99, 95, .17), transparent 42%),
        linear-gradient(145deg, #091017, #071014 55%, #0c1719);
    font-family: 'DM Sans', sans-serif;
}
.auth-shell {
    min-height: 100vh;
    padding: 48px 20px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.auth-card {
    width: min(100%, 440px);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 1;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
    font: 700 15px 'Space Grotesk', sans-serif;
    letter-spacing: .14em;
}
.brand-mark {
    width: 35px; height: 35px; display: grid; place-items: center;
    border-radius: 11px; color: #092018; background: var(--mint);
    font: 700 20px 'Space Grotesk', sans-serif; letter-spacing: 0;
}
.brand-light { color: var(--mint); font-weight: 500; }
.eyebrow {
    margin-top: 40px;
    color: var(--mint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
}
h1 {
    margin: 9px 0 7px;
    font: 600 clamp(27px, 5vw, 34px)/1.15 'Space Grotesk', sans-serif;
    letter-spacing: -.04em;
}
.subtitle { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 7px; color: #c9d5d7; font-size: 12px; font-weight: 600; }
.auth-form input {
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(4, 10, 14, .65);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus { border-color: rgba(120,240,196,.75); box-shadow: 0 0 0 3px rgba(120,240,196,.1); }
.auth-form input::placeholder { color: #65757b; }
.form-row { display: flex; justify-content: flex-end; margin: 2px 0 6px; font-size: 12px; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #adffe0; text-decoration: underline; }
.button {
    width: 100%;
    min-height: 49px;
    margin-top: 10px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #092018;
    background: var(--mint);
    font: 700 14px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: transform .18s, filter .18s;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 20px; margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.success-text { color: var(--mint); }
.error-text, .notice.error { color: var(--red); }
.switch-link { margin: 23px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.switch-link a { margin-left: 4px; font-weight: 600; }
.legal { margin: 25px 0 0; color: #637278; text-align: center; font-size: 10px; line-height: 1.5; }
.password-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 0 5px; padding: 0; list-style: none; }
.password-rules li { color: #77868b; font-size: 10px; }
.password-rules li::before { content: '○'; margin-right: 6px; color: #637278; }
.password-rules li.valid { color: var(--mint); }
.password-rules li.valid::before { content: '✓'; color: var(--mint); }
.ambient { position: absolute; width: 350px; height: 350px; border-radius: 50%; filter: blur(90px); opacity: .12; pointer-events: none; }
.ambient-one { top: -190px; left: -100px; background: #45ebaf; }
.ambient-two { right: -200px; bottom: -180px; background: #22898a; }
@media (max-width: 520px) {
    .auth-shell { padding: 20px 14px; }
    .auth-card { padding: 30px 24px; }
    .eyebrow { margin-top: 32px; }
}
