.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1b2430;
    background: #0A0612;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 520px);
    min-height: 100vh;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    background-color: #12081d;
    background-image:
        linear-gradient(160deg, rgba(10, 6, 18, .82) 0%, rgba(122, 12, 196, .55) 48%, rgba(1, 220, 253, .28) 100%),
        url("../images/auth/login-hero.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 3rem 2rem;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -18% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 220, 253, .28), transparent 68%);
    pointer-events: none;
}

.auth-hero-brand,
.auth-hero-copy,
.auth-hero-foot {
    position: relative;
    z-index: 1;
}

.auth-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: #fff;
    text-decoration: none;
}

.auth-hero-brand:hover {
    color: #fff;
    text-decoration: none;
}

.auth-hero-brand img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: rgba(255, 255, 255, .94);
    border-radius: 12px;
    padding: .4rem .7rem;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-hero h1 {
    margin: 0 0 .85rem;
    max-width: 14ch;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.auth-hero p.lead {
    max-width: 38rem;
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
}

.auth-points {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 600;
}

.auth-points i {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 220, 253, .18);
    color: #8af1ff;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.auth-stat {
    padding: 1rem 1rem .95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
}

.auth-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.auth-stat span {
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
}

.auth-hero-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, .62);
    font-size: .78rem;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f7f5fb;
    padding: 2.5rem 2.75rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card-head {
    margin-bottom: 1.5rem;
}

.auth-card-head h2 {
    margin: 0 0 .35rem;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.auth-card-head p {
    margin: 0;
    color: #5c6b7a;
}

.auth-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .82rem;
    font-weight: 700;
    color: #314152;
}

.auth-field {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
    border: 1px solid #e4e0ee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-field:focus-within {
    border-color: var(--st-brand);
    box-shadow: 0 0 0 4px rgba(var(--st-brand-rgb), .14);
}

.auth-field i {
    width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--st-brand);
    background: rgba(var(--st-brand-rgb), .07);
}

.auth-field input {
    flex: 1;
    border: 0;
    box-shadow: none;
    height: 48px;
    padding: 0 1rem 0 .15rem;
    background: transparent;
    font-size: .95rem;
}

.auth-field input:focus {
    outline: 0;
    box-shadow: none;
}

.auth-field-toggle {
    border: 0;
    background: transparent;
    color: #7b8794;
    width: 44px;
    cursor: pointer;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 1.15rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: #314152;
    cursor: pointer;
}

.auth-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--st-brand);
}

.auth-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--st-gradient);
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 12px 24px rgba(var(--st-brand-rgb), .28);
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    filter: brightness(1.05);
}

.auth-register {
    margin: 1rem 0 0;
    text-align: center;
    color: #5c6b7a;
}

.auth-register a {
    font-weight: 700;
    color: var(--st-brand);
}

.auth-demo {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #e4e0ee;
}

.auth-demo p {
    margin: 0 0 .7rem;
    color: #5c6b7a;
    font-size: .8rem;
}

.auth-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
}

.auth-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    height: 36px;
    border: 1px solid #e4e0ee;
    border-radius: 9px;
    background: #fff;
    color: #314152;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-demo-btn:hover,
.auth-demo-btn:focus {
    border-color: var(--st-brand);
    color: var(--st-brand);
    background: rgba(var(--st-brand-rgb), .06);
}

.auth-page .alert {
    border-radius: 12px;
    font-size: .9rem;
}

.auth-page .alert .close {
    padding: .65rem 1rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: 280px;
        padding: 1.4rem 1.35rem 1.25rem;
    }

    .auth-hero h1 {
        max-width: none;
        font-size: 1.85rem;
    }

    .auth-stats,
    .auth-hero-foot,
    .auth-points {
        display: none;
    }

    .auth-panel {
        padding: 1.5rem 1.15rem 2rem;
        background: #fff;
    }
}

@media (max-width: 575.98px) {
    .auth-demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
