.auth-page {
    min-height: calc(100vh - 250px);
    display: grid;
    place-items: center;
    padding: 56px 20px;
    background: #f3f1ed;
}

.auth-card {
    position: relative;
    width: min(100%, 470px);
    overflow: hidden;
    padding: 38px 42px 32px;
    border: 1px solid #dcd8d1;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(23, 26, 28, 0.07);
}

.auth-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #f36b2b;
}

.auth-heading {
    margin-bottom: 26px;
    text-align: center;
}

.auth-heading__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a83d0c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0 0 8px;
    color: #171a1c;
    font-size: 28px;
    line-height: 1.25;
}

.auth-heading p {
    margin: 0;
    color: #636669;
    font-size: 14px;
    line-height: 1.5;
}

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

.auth-field label,
.auth-field__label-row label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.auth-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.auth-field__label-row a {
    font-size: 13px;
}

.auth-field input:not([type="checkbox"]) {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #dcd8d1;
    border-radius: 2px;
    background: #fff;
    color: #25292b;
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:not([type="checkbox"]):focus {
    border-color: #a83d0c;
    box-shadow: 0 0 0 3px rgba(243, 107, 43, 0.18);
}

.auth-field--error input:not([type="checkbox"]) {
    border-color: #d84c3f;
    background: #fffafa;
}

.auth-field__error {
    margin: 5px 0 0;
    color: #b73529;
    font-size: 13px;
    line-height: 1.35;
}

.auth-field__help {
    margin-top: 6px;
    color: #636669;
    font-size: 12px;
    line-height: 1.45;
}

.auth-field__help ul {
    margin: 4px 0 0 18px;
    padding: 0;
}

.auth-alert {
    padding: 11px 13px;
    border: 1px solid #f0aaa3;
    border-radius: 2px;
    background: #fff0ee;
    color: #9e2f25;
    font-size: 13px;
    line-height: 1.4;
}

.auth-alert p {
    margin: 0;
}

.auth-notice {
    padding: 13px 15px;
    border: 1px solid #dcd8d1;
    border-radius: 2px;
    background: #f3f1ed;
    color: #414548;
    font-size: 14px;
    line-height: 1.5;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #414548;
    font-size: 14px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    accent-color: #f36b2b;
}

.auth-consent .auth-checkbox { align-items: flex-start; line-height: 1.5; width: 100%; }
.auth-consent .auth-checkbox input { flex: 0 0 17px; margin-top: 3px; }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-submit {
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 2px;
    background: #f36b2b;
    color: #171a1c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

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

.auth-submit:active {
    transform: translateY(1px);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(243, 107, 43, 0.4);
    outline-offset: 2px;
}

.auth-submit--link {
    display: block;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
}

.auth-submit--link:hover {
    color: #fff !important;
}

.auth-card a {
    color: #a83d0c;
    font-weight: 600;
    text-decoration: none;
}

.auth-card a:hover {
    color: #a83d0c;
    text-decoration: underline;
}

.auth-switch {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #dcd8d1;
    color: #636669;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 600px) {
    .auth-page {
        min-height: auto;
        padding: 28px 16px;
        background: none;
    }

    .auth-card {
        padding: 30px 22px 26px;
        border-radius: 4px;
        box-shadow: 0 8px 24px rgba(23, 26, 28, 0.06);
    }

    .auth-heading h1 {
        font-size: 24px;
    }
}

.auth-card a:focus-visible { outline: 2px solid #f36b2b; outline-offset: 3px; }
.auth-field__help a, .auth-consent a { text-decoration: underline; text-underline-offset: 3px; }
