.auth-page {
    --auth-deep: #1a5276;
    --auth-blue: #1f6a9e;
    --auth-ink: #1d3244;
    --auth-muted: #566a7a;
    --auth-line: #dcd9d0;
    --auth-paper: #faf8f4;
    --auth-danger: #b3261e;

    display: flex;
    justify-content: center;
    min-height: 75vh;
    padding: 48px 20px 64px;
    background: var(--auth-paper);
    color: var(--auth-ink);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    overflow: hidden;
    background: #fffefb;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 40px;
}

.auth-panel__inner {
    width: 100%;
    max-width: 400px;
}

.auth-aside {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--auth-deep);
    color: #fff;
}

.auth-aside__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-aside__text {
    position: relative;
    width: 100%;
    padding: 96px 36px 32px;
    background: linear-gradient(to top, rgba(16, 52, 76, .94) 30%, rgba(16, 52, 76, 0));
}

.auth-aside__title {
    margin: 0 0 6px;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.auth-aside__body {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.7;
    color: #e6eef3;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--auth-ink);
}

.auth-subtitle {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.7;
    color: var(--auth-muted);
}

.auth-recipient {
    margin: 8px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.auth-form {
    margin-top: 28px;
}

.auth-page a,
.auth-link {
    color: var(--auth-blue);
    font-weight: 700;
}

.auth-page .input-label {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    font-size: .875rem;
    font-weight: 700;
    color: var(--auth-ink);
}

.auth-page .form-group {
    margin-bottom: 18px;
}

.auth-page .form-control {
    height: 48px;
    padding: 0 14px;
    font-size: 1rem;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid #c4c1b6;
    border-radius: 8px;
    box-shadow: none;
}

.auth-page .form-control:focus {
    border-color: var(--auth-deep);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, .18);
}

.auth-page .form-control.is-invalid {
    border-color: var(--auth-danger);
    background-image: none;
}

.auth-page .invalid-feedback {
    margin-top: 6px;
    font-size: .8125rem;
    color: var(--auth-danger);
}

.auth-page .select2-container .select2-selection--single {
    height: 48px;
    border-color: #c4c1b6;
    border-radius: 8px;
}

.auth-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
}

.auth-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

.auth-password {
    position: relative;
}

.auth-password .form-control {
    padding-inline-end: 72px;
}

.auth-password__toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 68px;
    padding: 0;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--auth-blue);
    background: none;
    border: 0;
    cursor: pointer;
}

.auth-forgot {
    margin: -8px 0 4px;
    font-size: .875rem;
    text-align: end;
}

.auth-page .auth-submit {
    height: 48px;
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--auth-deep);
    border: 1px solid var(--auth-deep);
    border-radius: 8px;
    box-shadow: none;
    transform: none;
}

.auth-page .auth-submit:hover,
.auth-page .auth-submit:focus {
    background: #143f5b;
    border-color: #143f5b;
    color: #fff;
}

.auth-page a:focus-visible,
.auth-page button:focus-visible,
.auth-tabs input:focus-visible + label {
    outline: 2px solid var(--auth-deep);
    outline-offset: 2px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: .8125rem;
    color: var(--auth-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

.auth-page a.auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    font-size: .9375rem;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid #c4c1b6;
    border-radius: 8px;
}

.auth-page a.auth-social:hover {
    background: var(--auth-paper);
    text-decoration: none;
}

.auth-footer {
    margin: 24px 0 0;
    font-size: .9375rem;
    text-align: center;
    color: var(--auth-muted);
}

.auth-link {
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
}

.auth-link:disabled {
    font-weight: 400;
    color: var(--auth-muted);
    cursor: default;
}

.auth-hint {
    margin: 0 0 14px;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--auth-muted);
}

.auth-alert {
    margin-top: 18px;
    padding: 12px 14px;
    font-size: .875rem;
    line-height: 1.6;
    background: #eaf2f7;
    border-radius: 8px;
}

.auth-alert--danger {
    color: var(--auth-danger);
    background: #fbeeec;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: #f0ede6;
    border-radius: 10px;
}

.auth-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-tabs label {
    margin: 0;
    padding: 9px 8px;
    font-size: .9375rem;
    font-weight: 700;
    text-align: center;
    color: var(--auth-muted);
    border-radius: 7px;
    cursor: pointer;
}

.auth-tabs input:checked + label {
    color: var(--auth-deep);
    background: #fff;
    box-shadow: 0 1px 2px rgba(29, 50, 68, .14);
}

.auth-phone {
    display: flex;
    align-items: stretch;
}

.auth-phone__code {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-weight: 700;
    color: var(--auth-ink);
    background: #f0ede6;
    border: 1px solid #c4c1b6;
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.auth-page .auth-phone .form-control {
    flex: 1;
    min-width: 0;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

.auth-page .auth-code {
    height: 58px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .4em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

fieldset.js-reset-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-accounts {
    padding: 0;
    border: 0;
}

.auth-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px 14px;
    font-size: .875rem;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    cursor: pointer;
}

.auth-account:has(input:checked) {
    border-color: var(--auth-deep);
    background: #f2f7fa;
}

.auth-account span,
.auth-account bdi,
.auth-account strong {
    display: block;
    overflow-wrap: anywhere;
}

.auth-account bdi {
    color: var(--auth-muted);
}

.auth-page .wizard-custom-radio {
    gap: 4px;
    padding: 4px;
    background: #f0ede6;
    border-radius: 10px;
}

.auth-page .wizard-custom-radio label {
    margin: 0;
    padding: 9px 8px;
    font-size: .9375rem !important;
    font-weight: 700;
    color: var(--auth-muted);
    background: none;
    border: 0;
    border-radius: 7px;
}

.auth-page .wizard-custom-radio input:checked ~ label {
    color: var(--auth-deep);
    background: #fff;
    box-shadow: 0 1px 2px rgba(29, 50, 68, .14);
}

@media (max-width: 860px) {
    .auth-page {
        padding: 24px 14px 40px;
    }

    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .auth-panel {
        padding: 36px 22px;
    }

    .auth-aside {
        display: none;
    }
}
