body.auth-body {
    --auth-surface: #fff;
    --auth-text: #151a2b;
    --auth-secondary: #485365;
    --auth-muted: #606b7e;
    --auth-line: #ccd2dc;
    --auth-soft: #f0f1f3;
    --auth-accent: var(--primary-700);
    --auth-icon-surface: var(--primary-50);
    color: var(--auth-text);
    background: var(--auth-surface);
}

body.auth-body[data-theme-style="dark"] {
    --auth-surface: #161824;
    --auth-text: #f5f2fa;
    --auth-secondary: #d2cadc;
    --auth-muted: #b7afc3;
    --auth-line: #555063;
    --auth-soft: #262536;
    --auth-icon-surface: var(--primary-100);
}

.auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.auth-layout :focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

:where([data-theme-style="dark"] .auth-sheet) a:is(:hover, :focus-visible) {
    color: var(--primary-700);
}

.auth-brand {
    --auth-secondary: #485365;
    padding: .75rem 1.125rem 2rem;
    text-align: center;
    color: #151a2b;
    background: linear-gradient(to right, #0ff4ff99, #ffedb6) #fff;
}

.auth-brand .auth-brand-logo {
    display: inline-flex;
    width: fit-content;
    align-items: center;
}

.auth-brand-logo img {
    width: auto;
    height: 2rem;
    max-width: 12.5rem;
    object-fit: contain;
}

.auth-brand-copy {
    display: none;
}

.auth-sheet {
    flex: 1;
    min-width: 0;
    margin-top: -1.25rem;
    padding: 1.375rem 1.125rem 2.5rem;
    border-radius: 1.375rem 1.375rem 0 0;
    background: var(--auth-surface);
}

.auth-sheet-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 25rem;
    margin: 0 auto;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: .75rem;
    background: var(--auth-soft);
}

.auth-tabs a {
    display: grid;
    min-height: 2.5rem;
    place-items: center;
    padding: .45rem .25rem;
    border-radius: .55rem;
    color: var(--auth-secondary);
    font-weight: 650;
    text-align: center;
    text-decoration: none;
}

.auth-tabs a:hover,
.auth-tabs a[aria-current="page"] {
    color: var(--auth-text);
}

.auth-tabs a[aria-current="page"] {
    background: var(--auth-surface);
    box-shadow: 0 1px 4px rgba(14, 19, 33, .10);
}

.auth-heading h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.22;
    text-wrap: balance;
}

.auth-heading p {
    margin: .55rem 0 0;
    color: var(--auth-secondary);
    line-height: 1.5;
}

.auth-heading-centered {
    text-align: center;
}

.auth-heading-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: var(--auth-icon-surface);
    color: var(--auth-accent);
    font-size: 1.55rem;
}

.auth-confirmation-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
    margin: 0;
    padding: 0;
    color: var(--auth-muted);
    font-size: .85rem;
    list-style: none;
}

.auth-confirmation-steps li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.auth-confirmation-steps span {
    display: inline-grid;
    width: 1.3rem;
    height: 1.3rem;
    place-items: center;
    border-radius: 50%;
    background: var(--auth-soft);
}

.auth-confirmation-steps [aria-current="step"] {
    color: var(--auth-text);
    font-weight: 650;
}

.auth-confirmation-steps [aria-current="step"] span {
    background: var(--auth-icon-surface);
    color: var(--auth-accent);
}

.auth-confirmation-heading strong {
    overflow-wrap: anywhere;
}

.auth-confirmation-actions {
    display: grid;
    gap: .6rem;
}

.auth-confirmation-actions [aria-disabled="true"] {
    opacity: .65;
    cursor: default;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-layout .auth-form .form-group {
    margin: 0;
}

.auth-form .form-group label {
    margin-bottom: .45rem;
    color: var(--auth-text);
    font-size: .93rem;
    font-weight: 650;
}

.auth-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 .75rem;
}

.auth-label-row a {
    font-size: .9rem;
    font-weight: 550;
}

.auth-form .form-control {
    width: 100%;
    height: 3rem;
    padding: .55rem .8rem;
    border: 1px solid var(--auth-line);
    border-radius: .65rem;
    background-color: var(--auth-surface);
    color: var(--auth-text);
    font-size: 1rem;
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    outline: 0;
}

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

.auth-form .form-text {
    margin-top: .4rem;
    color: var(--auth-muted);
    font-size: .85rem;
}

.auth-password {
    position: relative;
}

.auth-password .form-control {
    padding-inline-end: 3.1rem;
}

.auth-password-toggle {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: .15rem;
    display: grid;
    width: 2.75rem;
    height: 3rem;
    place-items: center;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--auth-text);
}

.auth-password-toggle[aria-pressed="true"] .fa-eye,
.auth-password-toggle[aria-pressed="false"] .fa-eye-slash {
    display: none;
}

.auth-field-feedback .invalid-feedback {
    display: block;
}

.auth-form .auth-code {
    height: 3.4rem;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: .45em;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0;
    color: var(--auth-secondary);
    font-size: .88rem;
    line-height: 1.5;
}

.auth-check label {
    margin: 0;
    overflow-wrap: anywhere;
}

.auth-check input {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .11rem;
    accent-color: var(--primary);
}

.auth-remember {
    align-items: center;
}

.auth-remember input {
    margin: 0;
}

.auth-layout .auth-submit {
    width: 100%;
    min-height: 3.1rem;
    margin-top: .12rem;
    padding: .55rem .9rem;
    border-radius: .65rem;
    font-weight: 700;
}

.auth-captcha {
    min-width: 0;
}

.auth-captcha :is(.g-recaptcha, .h-captcha)[data-size="compact"] {
    width: auto;
    height: auto;
    overflow: visible;
}

.auth-captcha:has(.js-smart-captcha) {
    order: 1;
    margin-top: -.9rem;
    text-align: center;
}

.auth-layout .auth-captcha-note a {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.auth-divider {
    display: flex;
    gap: .75rem;
    align-items: center;
    color: var(--auth-muted);
    font-size: .88rem;
}

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

.auth-social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: .6rem;
}

.auth-social :is(a, button) {
    display: flex;
    min-width: 0;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .35rem;
    border: 1px solid var(--auth-line);
    border-radius: .65rem;
    background: transparent;
    color: var(--auth-text);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.auth-social img {
    flex: none;
}

.auth-social :is(a:hover, button:hover:enabled) {
    background-color: var(--auth-soft);
    color: var(--auth-text);
}

.auth-social button:disabled {
    opacity: .5;
}

.auth-alt {
    text-align: center;
    font-size: .94rem;
    font-weight: 600;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.auth-sheet .alert {
    margin: 0;
    border-radius: .65rem;
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .auth-brand-logo,
    .auth-tabs a,
    .auth-check label,
    .auth-remember,
    .auth-alt a {
        min-height: 2.75rem;
    }

    .auth-form {
        gap: 1.125rem;
    }

    .auth-check label {
        flex: 1;
    }

    .auth-alt a {
        display: inline-flex;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .auth-layout {
        display: grid;
        grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    }

    .auth-brand {
        position: sticky;
        top: 0;
        display: flex;
        min-height: 100vh;
        min-height: 100svh;
        flex-direction: column;
        align-items: flex-start;
        align-self: start;
        gap: clamp(1.4rem, 3.3vh, 2.3rem);
        padding: clamp(2.25rem, 4vw, 4.5rem);
        text-align: start;
    }

    .auth-brand-logo img {
        height: 2.5rem;
    }

    .auth-brand-copy {
        display: block;
        width: 100%;
        max-width: 32rem;
        margin-block: auto;
    }

    .auth-brand h2 {
        margin: 0 0 1.25rem;
        font-size: clamp(1.75rem, 2.4vw, 2.5rem);
        font-weight: 760;
        letter-spacing: -.025em;
        line-height: 1.18;
        text-wrap: balance;
    }

    .auth-brand ul {
        display: grid;
        gap: .8rem;
        margin: 0;
        padding: 0;
        list-style: none;
        color: var(--auth-secondary);
        font-size: clamp(1rem, 1.25vw, 1.125rem);
    }

    .auth-brand li {
        display: flex;
        align-items: baseline;
        gap: .75rem;
    }

    .auth-brand li :is(i, svg) {
        flex: none;
        color: var(--primary);
    }

    .auth-sheet {
        display: grid;
        align-items: center;
        margin-top: 0;
        padding: 3.5rem;
        border-radius: 0;
    }

    .auth-form {
        gap: 1.25rem;
    }
}
