.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(114, 37, 226, 0.18), transparent 36%),
        radial-gradient(ellipse at 88% 82%, rgba(207, 161, 48, 0.08), transparent 28%),
        #080711;
}

.auth-header,
.auth-footer {
    display: flex;
    width: min(calc(100% - 48px), 1240px);
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
}

.auth-header {
    min-height: 82px;
}

.auth-brand {
    display: block;
    width: 180px;
    height: 58px;
    overflow: hidden;
}

.auth-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-back,
.auth-footer {
    color: #aaa6b9;
    font-size: 12px;
}

.auth-back:hover {
    color: #fff;
}

.auth-main {
    display: grid;
    min-height: calc(100vh - 142px);
    place-items: center;
    padding: 36px 24px;
}

.auth-layout {
    display: grid;
    width: min(100%, 1000px);
    min-height: 570px;
    grid-template-columns: 0.88fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(236, 232, 255, 0.12);
    border-radius: 20px;
    background: rgba(14, 12, 24, 0.88);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45), 0 0 80px rgba(108, 48, 213, 0.09);
}

.auth-art {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    background:
        linear-gradient(180deg, rgba(8, 7, 17, 0.06) 15%, rgba(8, 7, 17, 0.3) 48%, #0a0812 100%),
        url("/upload/gamer-hero.png") 62% center / cover no-repeat;
}

.auth-art::after {
    position: absolute;
    inset: 0;
    border-right: 1px solid rgba(236, 232, 255, 0.08);
    background: linear-gradient(135deg, rgba(107, 36, 232, 0.2), transparent 58%);
    content: "";
    pointer-events: none;
}

.auth-art-kicker,
.auth-art h1,
.auth-art > p:not(.auth-art-kicker) {
    position: relative;
    z-index: 1;
}

.auth-art-kicker {
    margin: 0 0 14px;
    color: #f2eff8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.27em;
}

.auth-art-kicker span {
    color: #e7bd45;
}

.auth-art h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.1rem);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.auth-art h1 span {
    color: #d8aa32;
}

.auth-art > p:not(.auth-art-kicker) {
    max-width: 280px;
    margin: 18px 0 0;
    color: #d1cddd;
    font-size: 13px;
    line-height: 1.7;
}

.auth-art-mark {
    position: absolute;
    top: 28px;
    right: 28px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 88px;
    font-weight: 900;
    letter-spacing: -0.13em;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 62px);
}

.auth-card h2 {
    margin: 0;
    color: #f4f4f5;
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 760;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.auth-kicker {
    margin: 0 0 10px;
    color: #b88aff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-intro {
    margin: 12px 0 25px;
    color: #aaa6b9;
    font-size: 13px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    color: #dedbe5;
    font-size: 12px;
    font-weight: 650;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(236, 232, 255, 0.15);
    border-radius: 9px;
    outline: none;
    background: #0a0912;
    padding: 0 14px;
    color: #f4f4f5;
    font: inherit;
    font-size: 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-field input::placeholder {
    color: #777284;
}

.auth-field input:focus {
    border-color: #9b64f5;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.auth-hint {
    margin: -2px 0 0;
    color: #898496;
    font-size: 11px;
    line-height: 1.5;
}

.auth-form .button {
    width: 100%;
    margin-top: 3px;
    cursor: pointer;
}

.auth-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #aaa6b9;
    font-size: 12px;
}

.auth-inline-row a,
.auth-switch a,
.auth-secondary-link {
    color: #c39aff;
    font-weight: 700;
}

.auth-inline-row a:hover,
.auth-switch a:hover,
.auth-secondary-link:hover {
    color: #e3d0ff;
}

.auth-switch {
    margin: 22px 0 0;
    color: #aaa6b9;
    font-size: 12px;
    text-align: center;
}

.auth-legal {
    margin: 2px 0 0;
    color: #8f899d;
    font-size: 10px;
    line-height: 1.55;
}

.form-alert {
    margin: 0 0 20px;
    border: 1px solid rgba(168, 117, 255, 0.3);
    border-radius: 9px;
    background: rgba(124, 58, 237, 0.11);
    padding: 12px 14px;
    color: #e4d5ff;
    font-size: 12px;
    line-height: 1.6;
}

.form-alert-error {
    border-color: rgba(255, 96, 117, 0.36);
    background: rgba(255, 65, 92, 0.09);
    color: #ffd0d6;
}

.form-alert-success {
    border-color: rgba(38, 190, 112, 0.28);
    background: rgba(38, 190, 112, 0.08);
    color: #baf3d0;
}

.form-alert-notice {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.08);
    color: #f1e1a7;
}

.auth-status-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(168, 117, 255, 0.28);
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.15);
    color: #c7a5ff;
    font-size: 23px;
}

.auth-footer {
    min-height: 60px;
    border-top: 1px solid rgba(236, 232, 255, 0.07);
}

@media (max-width: 760px) {
    .auth-header,
    .auth-footer {
        width: min(calc(100% - 36px), 1240px);
    }

    .auth-header {
        min-height: 72px;
    }

    .auth-brand {
        width: 146px;
        height: 48px;
    }

    .auth-main {
        min-height: calc(100vh - 132px);
        padding: 18px;
    }

    .auth-layout {
        max-width: 500px;
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .auth-art {
        min-height: 190px;
        justify-content: flex-end;
        padding: 24px;
        background-position: 58% 40%;
    }

    .auth-art-kicker {
        margin-bottom: 9px;
    }

    .auth-art h1 {
        font-size: 2rem;
        line-height: 0.98;
    }

    .auth-art > p:not(.auth-art-kicker) {
        max-width: 270px;
        margin-top: 9px;
        font-size: 11px;
    }

    .auth-art-mark {
        top: 10px;
        right: 18px;
        font-size: 62px;
    }

    .auth-card {
        padding: 28px 22px 30px;
    }

    .auth-footer {
        min-height: 55px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-field input {
        transition: none;
    }
}
