:root {
    color-scheme: dark;
    --ink: #08070d;
    --white: #f8f7ff;
    --muted: #afa9c2;
    --violet: #8b5cf6;
    --blue: #2563eb;
    --cyan: #36c5f0;
    --line: rgba(255,255,255,.13);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 15%, rgba(116, 66, 255, .33), transparent 32rem),
        radial-gradient(circle at 87% 80%, rgba(25, 89, 255, .27), transparent 34rem),
        linear-gradient(135deg, #050409 0%, #100824 46%, #071331 100%);
    position: relative;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .17;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.auth-ambient { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .28; pointer-events: none; }
.auth-ambient-one { width: 26rem; height: 26rem; background: #9a38ff; left: -12rem; top: 24%; }
.auth-ambient-two { width: 32rem; height: 32rem; background: #1268ff; right: -18rem; top: 5%; }

.auth-header, .auth-footer {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

.auth-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .14em; }
.auth-brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.auth-brand-mark img { width: 31px; height: 31px; object-fit: contain; }
.auth-tagline { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; }

.auth-shell { width: min(1240px, calc(100% - 48px)); min-height: calc(100vh - 164px); margin: 0 auto; display: grid; align-items: center; position: relative; z-index: 1; }
.auth-stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 470px); gap: clamp(48px, 8vw, 130px); align-items: center; padding: 50px 0 80px; }
.auth-copy { max-width: 720px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 10px; color: #d9d0ff; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .19em; }
.auth-kicker::before { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.auth-hero-mark { margin: 18px 0 0; width: clamp(11rem, 24vw, 20rem); filter: drop-shadow(0 0 55px rgba(115, 76, 255, .48)); }
.auth-hero-mark img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.auth-copy h1 { max-width: 680px; margin: 38px 0 18px; font: 600 clamp(2rem, 4.2vw, 4rem)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.auth-copy h1 em { font-style: normal; color: #9bb8ff; }
.auth-copy p { max-width: 570px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.auth-proof span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); color: #d8d4e6; font-size: .78rem; }

.auth-card { padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: linear-gradient(145deg, rgba(28,22,46,.84), rgba(10,10,20,.74)); box-shadow: 0 34px 90px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(24px); }
.auth-card-header { margin-bottom: 28px; }
.auth-card h2 { margin: 0 0 9px; font: 600 1.75rem/1.15 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.auth-card-header p, .auth-switch { margin: 0; color: var(--muted); font-size: .9rem; }
.auth-validation { color: #ff9da5; font-size: .82rem; margin-bottom: 14px; }
.auth-field { display: grid; gap: 8px; margin-bottom: 17px; }
.auth-field label { color: #ddd9e9; font-size: .8rem; font-weight: 600; }
.auth-field input { width: 100%; min-height: 53px; padding: 0 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; outline: none; color: #fff; background: rgba(4,4,11,.43); transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-field input:focus { border-color: #8c73ff; background: rgba(8,7,18,.72); box-shadow: 0 0 0 4px rgba(139,92,246,.16); }
.auth-field .field-validation-error { color: #ff9da5; font-size: .75rem; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 3px 0 22px; color: var(--muted); font-size: .78rem; }
.auth-check { display: flex; align-items: center; gap: 8px; }
.auth-check input { accent-color: var(--violet); }
.auth-consents { display: grid; gap: 8px; margin: 2px 0 20px; }
.auth-consent { align-items: flex-start; line-height: 1.45; color: var(--muted); }
.auth-consent input { margin-top: 3px; flex: 0 0 auto; }
.auth-consents .field-validation-error { color: #ff9da5; font-size: .75rem; margin-left: 24px; }
.auth-link { color: #b9aaff; text-decoration: none; }
.auth-link:hover { color: #fff; }
.auth-submit { width: 100%; min-height: 54px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font-weight: 700; background: linear-gradient(100deg, #7848f5, #315fff 64%, #258be8); box-shadow: 0 14px 34px rgba(71,70,242,.3); transition: transform .18s, box-shadow .18s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(71,70,242,.42); }
.auth-submit-link { display: grid; place-items: center; text-decoration: none; }
.auth-card-compact { align-self: center; }
.auth-success-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 22px; color: #fff; font-size: 1.45rem; background: linear-gradient(135deg,#7350ef,#2875eb); box-shadow: 0 13px 30px rgba(75,72,236,.3); }
.auth-switch { text-align: center; margin-top: 24px; }

.auth-footer { min-height: 70px; display: flex; justify-content: space-between; gap: 20px; color: #767187; font-size: .74rem; }

@media (max-width: 850px) {
    .auth-stage { grid-template-columns: 1fr; padding-top: 34px; }
    .auth-copy { text-align: center; margin-inline: auto; }
    .auth-copy p { margin-inline: auto; }
    .auth-kicker { justify-content: center; }
    .auth-proof { justify-content: center; }
    .auth-hero-mark { width: clamp(11rem, 48vw, 17rem); margin-inline: auto; }
    .auth-card { width: min(100%, 500px); margin: 0 auto; }
}

@media (max-width: 560px) {
    .auth-header, .auth-footer, .auth-shell { width: min(100% - 28px, 1240px); }
    .auth-header { min-height: 76px; }
    .auth-tagline { display: none; }
    .auth-stage { padding: 26px 0 55px; gap: 42px; }
    .auth-copy h1 { margin-top: 28px; }
    .auth-card { border-radius: 22px; }
    .auth-footer { justify-content: center; text-align: center; }
    .auth-footer span:last-child { display: none; }
}
