.auth-page {
    min-height: 100vh;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 28px;
    background: var(--store-page-bg);
}

.auth-card {
    width: min(100%, 1080px);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.05fr);
    overflow: hidden;
    background: var(--store-surface);
    border: 1px solid rgba(var(--store-primary-rgb), .1);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(var(--store-primary-rgb), .18);
}

.auth-cover {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
    padding: 56px 48px;
    color: var(--store-surface);
    text-align: center;
    background:
        linear-gradient(145deg, rgba(var(--store-primary-rgb), .94), rgba(var(--store-secondary-rgb), .9)),
        var(--store-primary);
}

.auth-cover-content {
    max-width: 420px;
}

.auth-kicker {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-cover-title {
    margin: 0;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
}

.auth-cover-text {
    margin: 22px auto 0;
    max-width: 360px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.55;
}

.auth-panel-link {
    width: min(100%, 260px);
    min-height: 46px;
    margin: 36px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 999px;
    padding: 0 22px;
    color: var(--store-surface);
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.auth-panel-link:hover,
.auth-panel-link:focus {
    color: var(--store-primary);
    background: var(--store-surface);
    transform: translateY(-1px);
}

.auth-form-panel {
    display: grid;
    align-content: center;
    padding: 54px clamp(34px, 5vw, 76px);
}

.auth-form-inner {
    width: min(100%, 460px);
    margin: 0 auto;
}

.auth-title {
    margin: 0;
    color: var(--store-primary);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.auth-subtitle {
    margin: 14px 0 30px;
    color: var(--store-muted);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.field,
.form-row {
    margin-bottom: 16px;
}

.auth-form-panel label {
    display: block;
    margin-bottom: 7px;
    color: var(--store-text);
    font-size: 14px;
    font-weight: 700;
}

.auth-form-panel input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--store-text);
    background: var(--store-field-bg);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-form-panel input:focus {
    border-color: rgba(var(--store-primary-rgb), .55);
    background: var(--store-surface);
    box-shadow: 0 0 0 4px rgba(var(--store-primary-rgb), .12);
}

.auth-form-panel input::placeholder {
    color: var(--store-muted);
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.auth-submit {
    width: min(100%, 270px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: var(--store-primary);
    background: var(--store-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(var(--store-accent-rgb), .24);
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    color: var(--store-surface);
    background: var(--store-primary);
    box-shadow: 0 12px 24px rgba(var(--store-primary-rgb), .24);
    transform: translateY(-1px);
}

.alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-success {
    color: var(--store-success-text);
    background: var(--store-success-bg);
    border: 1px solid var(--store-success-border);
}

.alert-error,
.alert-danger {
    color: var(--store-error-text);
    background: var(--store-error-bg);
    border: 1px solid var(--store-error-border);
}

.form-error,
.form-error ul {
    margin: 6px 0 0;
    padding: 0;
    color: var(--store-error-text);
    font-size: 13px;
    line-height: 1.35;
    list-style: none;
}

@media (max-width: 820px) {
    .auth-page {
        padding: 18px;
        place-items: stretch;
    }

    .auth-card {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-cover {
        padding: 38px 24px;
    }

    .auth-cover-title {
        font-size: 34px;
    }

    .auth-title {
        font-size: 32px;
    }

    .auth-cover-text {
        margin-top: 16px;
        font-size: 16px;
    }

    .auth-panel-link {
        margin-top: 24px;
    }

    .auth-form-panel {
        align-content: start;
        padding: 34px 22px 38px;
    }
}
