:root {
    --navy-950: #141d29;
    --navy-900: #1e2a3a;
    --navy-800: #24344a;
    --navy-700: #2c3e50;
    --accent: #4f8cff;
    --accent-2: #7c5cff;
    --ink-muted: #8fa3bb;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- Left brand panel ---------- */
.auth-brand {
    position: relative;
    flex: 1 1 46%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.25rem;
    color: #eef3fb;
    background:
        radial-gradient(1100px 620px at -10% -10%, rgba(124, 92, 255, .35), transparent 60%),
        radial-gradient(900px 560px at 110% 110%, rgba(79, 140, 255, .35), transparent 55%),
        linear-gradient(150deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
    pointer-events: none;
}

.auth-brand::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -140px;
    background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, .55), transparent 70%);
}

.auth-brand::after {
    width: 320px;
    height: 320px;
    left: -100px;
    bottom: -100px;
    background: radial-gradient(circle at 60% 60%, rgba(79, 140, 255, .45), transparent 70%);
}

.auth-brand-grid {
    position: absolute;
    inset: 0;
    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: 42px 42px;
    mask-image: radial-gradient(circle at 30% 20%, black, transparent 75%);
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .01em;
}

.auth-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px -6px rgba(79, 140, 255, .6);
    font-size: 1.05rem;
}

.auth-headline {
    max-width: 420px;
    margin-top: 2.5rem;
}

.auth-headline h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .75rem;
}

.auth-headline p {
    color: var(--ink-muted);
    font-size: .98rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 2.25rem 0 0;
    display: grid;
    gap: .85rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .92rem;
    color: #dce6f5;
}

.auth-features .icon {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #cdd9ee;
}

.auth-quote {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 1.25rem;
    font-size: .85rem;
    color: var(--ink-muted);
}

.auth-quote strong { color: #eef3fb; }

/* ---------- Right form panel ---------- */
.auth-panel {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #f5f7fb;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card-mobile-logo {
    display: none;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16202e;
    margin-bottom: .3rem;
}

.auth-card .auth-sub {
    color: #6b7a90;
    font-size: .92rem;
    margin-bottom: 1.75rem;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #33455c;
    margin-bottom: .4rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .bi {
    position: absolute;
    left: .9rem;
    color: #97a6bd;
    font-size: .95rem;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    padding: .68rem .9rem .68rem 2.5rem;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    font-size: .93rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .15);
}

.auth-input-wrap .toggle-pass {
    position: absolute;
    right: .75rem;
    background: none;
    border: none;
    color: #97a6bd;
    cursor: pointer;
    padding: .25rem;
    font-size: .95rem;
    line-height: 1;
}

.auth-input-wrap .toggle-pass:hover { color: #5b6b82; }

.auth-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: .72rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px -8px rgba(79, 140, 255, .55);
    transition: transform .12s ease, box-shadow .12s ease;
    cursor: pointer;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(79, 140, 255, .6); }
.auth-submit:active { transform: translateY(0); }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    background: #fdecec;
    border: 1px solid #f6c6c6;
    color: #9c2b2b;
    font-size: .87rem;
    border-radius: 10px;
    padding: .65rem .8rem;
    margin-bottom: 1.1rem;
}

@media (max-width: 900px) {
    .auth-brand { display: none; }
    .auth-panel { flex: 1 1 100%; }
    .auth-card-mobile-logo {
        display: flex;
        align-items: center;
        gap: .55rem;
        justify-content: center;
        margin-bottom: 1.75rem;
        font-weight: 700;
        color: #16202e;
    }
    .auth-card-mobile-logo .auth-logo-mark {
        width: 34px; height: 34px; border-radius: 9px;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        display: grid; place-items: center; color: #fff; font-size: .95rem;
    }
}
