.frontend-layout__content > .auth-page {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 5vw, 56px) 0;
}

.frontend-layout__content > .auth-page--wide {
    padding-top: 24px;
}

.auth-page .auth-card {
    width: min(100%, 460px);
    box-sizing: border-box;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
}

.auth-page .auth-card--wide {
    width: min(100%, 940px);
    padding: clamp(24px, 4vw, 44px);
}

.auth-page .auth-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    color: #172b4d;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    text-decoration: none;
}

.auth-page .auth-brand span {
    color: #1685f8;
}

.auth-page .auth-card__eyebrow {
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-page .auth-card h1 {
    margin: 0 0 10px;
    color: #14233b;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.auth-page .auth-card__intro {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.auth-page .auth-card__note {
    margin: -8px 0 22px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f5f9ff;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.auth-page .auth-card a:not(.auth-brand) {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.auth-page .auth-card a:not(.auth-brand):hover {
    color: #1e40af;
    text-decoration: underline;
}

.auth-page .auth-form {
    display: grid;
    gap: 18px;
    margin: 0;
}

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

.auth-page .auth-field label {
    color: #334155;
    font-size: 14px;
    font-weight: 650;
}

.auth-page .auth-field input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #172b4d;
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-page .auth-field input:focus {
    border-color: #60a5fa;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}

.auth-page .auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    padding: 12px 18px;
    border: 1px solid #1d4ed8;
    border-radius: 10px;
    background: linear-gradient(135deg, #3184f5, #1d5fd1);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-page .auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 11px 22px rgba(37, 99, 235, .25);
}

.auth-page .auth-submit:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 3px;
}

.auth-page .auth-alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page .auth-alert--error {
    border-color: #fecaca;
    background: #fff5f5;
    color: #991b1b;
}

.auth-page .auth-alert--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.auth-page .auth-card__footer {
    margin: 22px 0 0;
    padding-top: 17px;
    border-top: 1px solid #eef2f7;
    color: #64748b;
    font-size: 14px;
}

.auth-page--wide .auth-card h2 {
    margin: 30px 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e8edf4;
    color: #172b4d;
    font-size: 19px;
    line-height: 1.4;
}

.auth-page--wide .auth-card p {
    color: #475569;
    line-height: 1.7;
}

.auth-page--wide .auth-steps {
    display: grid;
    gap: 12px;
    margin: 16px 0 22px;
    padding-left: 24px;
    color: #334155;
    line-height: 1.65;
}

.auth-page--wide .auth-steps li {
    padding-left: 5px;
}

.auth-page--wide .auth-steps li::marker {
    color: #2563eb;
    font-weight: 700;
}

.auth-page--wide .auth-callout {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    background: #f5f9ff;
    color: #334155;
}

.auth-page--wide .auth-callout--warning {
    border-color: #fed7aa;
    border-left-color: #f59e0b;
    background: #fffaf2;
    color: #7c4a16;
}

.auth-page--wide pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 10px 0;
    padding: 14px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre;
}

.auth-page--wide pre code {
    color: inherit;
}

.auth-page--wide :not(pre) > code {
    padding: 2px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    color: #1e3a5f;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .frontend-layout__content > .auth-page {
        padding: 14px 0 24px;
    }

    .auth-page .auth-card,
    .auth-page .auth-card--wide {
        padding: 23px 18px;
        border-radius: 15px;
    }

    .auth-page .auth-brand {
        margin-bottom: 22px;
    }
}

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