.auth-page {
    --canvas: #100e10;
    --surface: #1d1616;
    --line: #654032;
    --ink: #fff3ea;
    --muted: #ceb7aa;
    --accent: #ff9759;
    --action-ink: #271108;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: radial-gradient(ellipse at 50% 42%, #322017, transparent 64%), var(--canvas);
}

.auth-page .site-footer { border-color: #302321; font-size: 13px; }
.auth-page .site-footer a { text-decoration: none; }
.auth-page .site-footer a:hover { color: var(--ink); }

.auth-page main {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    padding-block: clamp(30px, 7vw, 88px);
}

.auth-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
    width: min(900px, 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 24px 64px #07040585;
}

.auth-panel { padding: clamp(22px, 4.3vw, 48px); }
.auth-panel h1 {
    margin: 20px 0 25px;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.11;
    letter-spacing: -.045em;
}

.auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #55382e;
    border-radius: 11px;
    background: #130f10;
}
.auth-switch a {
    padding: 9px 4px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.auth-switch a:hover { color: var(--ink); }
.auth-switch a[aria-current="page"] {
    color: #ffad79;
    background: #39231b;
    border-color: #694030;
}

.auth-stage .auth-form { position: relative; gap: 15px; padding: 0; background: transparent; border: 0; }
.auth-field { display: grid; gap: 6px; }
.auth-form label { font-weight: 650; font-size: 14px; }
.auth-form input[type="text"], .auth-form input[type="password"] {
    min-height: 48px;
    border-color: #614135;
    border-radius: 9px;
    background: #130e10;
    padding: 10px 12px;
}
.auth-form input:focus-visible { outline-offset: 1px; }
.auth-hint { color: var(--muted); font-size: 12px; }
.auth-password { position: relative; }
.auth-password input[type] { padding-inline-end: 100px; }
.auth-form .auth-reveal {
    position: absolute;
    inset: 5px 5px 5px auto;
    background: none;
    color: #ffbc91;
    padding: 5px 8px;
    font-size: 12px;
}
.auth-form .auth-reveal:hover { background: #34221c; }
.auth-form .auth-submit {
    min-height: 48px;
    border-color: #ffb17a;
    border-radius: 9px;
    background: linear-gradient(125deg, #ffb266, #ff7737);
    color: var(--action-ink);
    font-weight: 760;
}
.auth-form .form-status:empty { position: absolute; }
.auth-form .form-status { font-size: 13px; }
.auth-back, .auth-recovery { color: #ffbc91; font-size: 13px; text-underline-offset: 3px; }
.auth-recovery { justify-self: center; }

.auth-art {
    display: grid;
    place-items: center;
    min-width: 0;
    border-left: 1px solid var(--line);
    background: repeating-linear-gradient(130deg, transparent 0 54px, #ffb27318 55px 56px, transparent 57px 78px),
        radial-gradient(ellipse at 50% 55%, #9e421d, #53291b 48%, #261816 92%);
}
.auth-art img {
    width: 83%;
    height: clamp(170px, 25vw, 262px);
    object-fit: contain;
    object-view-box: inset(17.5% 24.22% 9.81% 24.27%);
    filter: drop-shadow(0 18px 20px #1e0909b0);
}

@media (max-width: 700px) {
    .auth-stage { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
    .auth-art { display: none; }
}
