.auth-page .content {
    padding-top: 0 !important;
}

.auth-breadcrumb {
    color: #77818c;
    font-size: 0.8125rem;
    margin: 0 0 18px;
}

.auth-breadcrumb__trail {
    align-items: center;
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-breadcrumb__trail li + li::before {
    color: #a0a7af;
    content: "/";
    margin-right: 10px;
}

.auth-breadcrumb a,
.auth-form a {
    color: #0d6efd;
}

.auth-breadcrumb__back {
    align-items: center;
    display: none;
    font-weight: 600;
    gap: 8px;
}

.auth-shell {
    margin: 0 auto;
    max-width: 520px;
    padding-bottom: 40px;
    width: 100%;
}

.auth-card {
    background: #fff;
    border: 1px solid #e2e7ec;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(31, 41, 55, 0.04);
    padding: 28px;
}

.auth-card [hidden] {
    display: none !important;
}

.auth-card__heading h1 {
    color: #20242a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 6px;
}

.auth-card__heading p {
    color: #68717d;
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
}

.auth-tabs {
    background: #f0f3f6;
    border-radius: 11px;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    margin: 22px 0 24px;
    padding: 4px;
}

.auth-tab {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #626b75;
    display: flex;
    font-size: 0.875rem;
    font-weight: 650;
    height: 42px;
    justify-content: center;
    padding: 0 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.auth-tab:hover {
    color: #0d6efd;
}

.auth-tab:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
    outline: 0;
}

.auth-tab.is-active {
    background: #fff;
    border-color: #b9d5ff;
    box-shadow: 0 1px 3px rgba(31, 41, 55, 0.08);
    color: #0d6efd;
}

.auth-tab__mobile {
    display: none;
}

.auth-field,
.auth-field-group {
    margin-bottom: 16px;
}

.auth-field-group .auth-field {
    margin-bottom: 0;
}

.auth-field__control {
    position: relative;
}

.auth-field__input {
    background: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 9px;
    color: #20242a;
    display: block;
    font-size: 1rem;
    height: 48px;
    line-height: 1.4;
    outline: 0;
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.auth-field__input::placeholder {
    color: #929ba5;
    opacity: 1;
}

.auth-field__input--password {
    padding-right: 50px;
}

.auth-field__input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.auth-field--error .auth-field__input,
.auth-field--client-error .auth-field__input,
.auth-field__input[aria-invalid="true"],
.auth-field__input--invalid {
    border-color: #dc3545;
}

.auth-field--error .auth-field__input:focus,
.auth-field--client-error .auth-field__input:focus,
.auth-field__input[aria-invalid="true"]:focus,
.auth-field__input--invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.auth-field__password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #68717d;
    display: flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
}

.auth-field__password-toggle:hover {
    color: #0d6efd;
}

.auth-field__password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
    outline: 0;
}

.auth-field__feedback:empty {
    display: none;
}

.auth-field__feedback small {
    color: #68717d;
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 6px;
}

.auth-field__feedback .errorlist,
.auth-form__errors .errorlist {
    color: #dc3545;
    font-size: 0.8125rem;
    line-height: 1.35;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.auth-form__errors {
    background: #fff5f5;
    border: 1px solid #f3c6cb;
    border-radius: 9px;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.auth-form__errors .errorlist {
    margin: 0;
}

.auth-field__client-error {
    color: #dc3545;
    font-size: 0.875rem;
    line-height: 1.35;
    margin: 6px 0 0;
}

.auth-form__secondary-action {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 18px;
}

.auth-form__secondary-action a {
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-form__submit {
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 650;
    min-height: 52px;
}

.auth-form__submit[aria-busy="true"] {
    cursor: wait;
    opacity: 0.78;
}

.auth-form__consent {
    color: #68717d;
    font-size: 0.6875rem;
    line-height: 1.45;
    margin: 14px 4px 0;
    text-align: center;
}

.auth-form__consent a {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 575.98px) {
    .auth-page .page_inner {
        padding-top: 16px !important;
    }

    .auth-breadcrumb {
        margin-bottom: 14px;
    }

    .auth-breadcrumb__trail {
        display: none;
    }

    .auth-breadcrumb__back {
        display: inline-flex;
    }

    .auth-shell {
        padding-bottom: 28px;
    }

    .auth-card {
        border-radius: 12px;
        padding: 18px;
    }

    .auth-card__heading h1 {
        font-size: 1.375rem;
    }

    .auth-card__heading p {
        font-size: 0.8125rem;
    }

    .auth-tabs {
        margin: 18px 0 20px;
    }

    .auth-tab {
        font-size: 0.8125rem;
        height: 40px;
        padding: 0 8px;
    }

    .auth-tab__desktop {
        display: none;
    }

    .auth-tab__mobile {
        display: inline;
    }

    .auth-field,
    .auth-field-group {
        margin-bottom: 14px;
    }

    .auth-form__submit {
        min-height: 50px;
    }
}
