.auth-page {
    --text: #211d20;
    --border: #dcd7d8;
    --accent: #a71425;
    background: #fff;
    font: 16px/1.5 "Segoe UI", sans-serif;
}

.auth-page .content-centered {
    display: block;
    padding: 0;
}

.auth-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(360px, 42fr) minmax(0, 58fr);
}

.auth-brand {
    display: grid;
    gap: 36px;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    padding: clamp(32px, 5.3vw, 82px);
    background:
        radial-gradient(ellipse at 0% 102%, #772635 0%, transparent 66%),
        linear-gradient(140deg, #352029, #21171c 67%);
    color: #fff5f6;
}

.auth-brand img {
    object-fit: contain;
}

.auth-brand h2,
.auth-panel h1 {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    margin: 0 0 14px;
}

.auth-brand-copy p {
    margin: 0;
    max-width: 32ch;
    color: #e9cfd5;
    font-size: 1.05rem;
}

.auth-workflows {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
}

.auth-workflows i {
    text-align: center;
    width: 23px;
    margin-right: 5px;
    color: #f3a9b5;
}

.auth-guide-note {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-top: 18px;
    margin: 0;
    border-top: 1px solid #ffffff2b;
    color: #e9cfd5;
    font-size: 0.89rem;
}

.auth-guide-note strong {
    color: #fff;
}

.auth-panel {
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(24px, 6vw, 94px);
}

.auth-panel-inner {
    width: min(100%, 400px);
}

.auth-panel h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 8px;
}

.auth-intro,
.auth-help {
    color: #5f565b;
}

.auth-intro {
    margin: 0 0 30px;
}

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

.auth-form input {
    min-height: 49px;
    margin-bottom: 12px;
    background: #fff;
}

.auth-page :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.auth-password {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.auth-password input {
    margin: 0;
    border: 0;
    background: transparent;
}

.auth-reveal {
    min-width: 64px;
    min-height: 44px;
    margin-right: 3px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #791421;
    font-weight: 600;
    cursor: pointer;
}

.auth-reveal:hover {
    background: #faedef;
}

.auth-caps {
    margin: -8px 0 4px;
    color: #81561a;
    font-size: 0.82rem;
}

.auth-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 49px;
    margin-top: 2px;
    background: #89172a;
}

.auth-submit:hover {
    background: #701023;
}

.auth-help {
    margin: 22px 0 0;
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .auth-brand {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px 22px;
        padding: 22px max(20px, calc((100vw - 400px) / 2));
    }

    .auth-brand img {
        width: 102px;
        height: auto;
    }

    .auth-brand h2 {
        margin: 0;
        font-size: 1.25rem;
    }

    .auth-brand-copy p,
    .auth-guide-note,
    .auth-workflows {
        display: none;
    }

    .auth-panel {
        align-items: start;
        padding: 32px 20px;
    }
}
