﻿.auth-layout {
    --auth-yellow: #fcc200;
    --auth-yellow-hover: #e5af00;
    --auth-yellow-soft: #fff8dc;
    --auth-charcoal: #252528;
    --auth-charcoal-deep: #151515;
    --auth-surface: #ffffff;
    --auth-background: #f4f4f2;
    --auth-text: #18181b;
    --auth-text-secondary: #52525b;
    --auth-text-muted: #71717a;
    --auth-border: #dededb;
    --auth-danger: #b42318;
    --auth-danger-background: #fff4f2;
    --auth-danger-border: #fecdca;
    min-height: 100vh;
    min-height: 100dvh;
}

    .auth-layout,
    .auth-layout * {
        box-sizing: border-box;
    }

.login-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 2rem;
    overflow: hidden;
    color: var(--auth-text);
    background: radial-gradient( circle at 8% 12%, rgba(252, 194, 0, 0.17), transparent 23rem ), radial-gradient( circle at 92% 88%, rgba(37, 37, 40, 0.08), transparent 27rem ), var(--auth-background);
    font-family: "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
    width: min(100%, 1160px);
    min-height: 680px;
    overflow: hidden;
    background: var(--auth-surface);
    border: 1px solid rgba(37, 37, 40, 0.1);
    border-radius: 28px;
    box-shadow: 0 36px 90px rgba(21, 21, 21, 0.16), 0 3px 12px rgba(21, 21, 21, 0.06);
}

.login-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-width: 0;
    padding: 3.5rem;
    color: #ffffff;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.035), transparent 42% ), linear-gradient( 145deg, var(--auth-charcoal) 0%, var(--auth-charcoal-deep) 100% );
}

    .login-brand-panel::before {
        position: absolute;
        z-index: -1;
        top: -9rem;
        right: -8rem;
        width: 25rem;
        height: 25rem;
        content: "";
        background: var(--auth-yellow);
        border-radius: 999px;
        opacity: 0.95;
        transform: rotate(-12deg);
    }

    .login-brand-panel::after {
        position: absolute;
        z-index: -1;
        right: -6rem;
        bottom: -8rem;
        width: 22rem;
        height: 22rem;
        content: "";
        border: 1px solid rgba(252, 194, 0, 0.28);
        border-radius: 999px;
        box-shadow: 0 0 0 3.5rem rgba(252, 194, 0, 0.045), 0 0 0 7rem rgba(252, 194, 0, 0.025);
    }

.login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 1.25rem;
    color: #ffffff;
    text-decoration: none;
}

    .login-brand:hover,
    .login-brand:focus {
        color: #ffffff;
        text-decoration: none;
    }

    .login-brand:focus-visible {
        outline: 3px solid var(--auth-yellow);
        outline-offset: 6px;
        border-radius: 6px;
    }

.login-brand-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 68px;
    object-fit: contain;
}

.login-brand-product {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    border-left: 2px solid var(--auth-yellow);
    font-size: 0.83rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin: 4.5rem 0;
}

.login-brand-content h2 {
    max-width: 32rem;
    margin: 1.35rem 0 0;
    color: #ffffff;
    font-size: clamp(2.65rem, 4.7vw, 4.2rem);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.login-brand-description {
    max-width: 31rem;
    margin: 1.6rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.02rem;
    line-height: 1.75;
}

.login-feature-list {
    display: grid;
    gap: 0.9rem;
    max-width: 30rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.5;
}

.login-feature-icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    background: rgba(252, 194, 0, 0.13);
    border: 1px solid rgba(252, 194, 0, 0.32);
    border-radius: 999px;
}

    .login-feature-icon::after {
        width: 0.45rem;
        height: 0.45rem;
        content: "";
        background: var(--auth-yellow);
        border-radius: 999px;
    }

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(3rem, 6vw, 5.5rem);
    background: linear-gradient( 155deg, #ffffff 0%, #fafaf9 100% );
}

.login-form-content {
    width: 100%;
    max-width: 405px;
    margin: 0 auto;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h1 {
    margin: 0;
    color: var(--auth-text);
    font-size: clamp(2.2rem, 4vw, 2.85rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.login-header p:not(.login-form-kicker) {
    max-width: 24rem;
    margin: 0.9rem 0 0;
    color: var(--auth-text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.login-field {
    margin-bottom: 1.2rem;
}

    .login-field .form-control {
        min-height: 3.8rem;
        color: var(--auth-text);
        background-color: #ffffff;
        border: 1px solid var(--auth-border);
        border-radius: 10px;
        transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
    }

        .login-field .form-control:hover {
            border-color: #aaa9a4;
        }

        .login-field .form-control:focus {
            background-color: #ffffff;
            border-color: #7a6500;
            box-shadow: 0 0 0 4px rgba(252, 194, 0, 0.25);
        }

        .login-field .form-control:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
            -webkit-text-fill-color: var(--auth-text);
        }

    .login-field label {
        color: var(--auth-text-muted);
    }

    .login-field .validation-message {
        display: block;
        margin-top: 0.4rem;
        color: var(--auth-danger);
        font-size: 0.82rem;
    }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.45rem 0 1.6rem;
    font-size: 0.9rem;
}

    .login-options a {
        color: #5f5000;
        font-weight: 700;
        text-underline-offset: 3px;
    }

        .login-options a:hover {
            color: var(--auth-text);
        }

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--auth-text-secondary);
    cursor: pointer;
}

    .login-remember .form-check-input {
        width: 1.05rem;
        height: 1.05rem;
        margin: 0;
        border-color: #aaa9a4;
    }

        .login-remember .form-check-input:checked {
            background-color: var(--auth-charcoal);
            border-color: var(--auth-charcoal);
        }

        .login-remember .form-check-input:focus {
            border-color: #7a6500;
            box-shadow: 0 0 0 4px rgba(252, 194, 0, 0.25);
        }

.btn.btn-primary.login-button {
    min-height: 3.55rem;
    padding: 0.85rem 1.25rem;
    color: var(--auth-charcoal-deep);
    background: var(--auth-yellow);
    border: 1px solid var(--auth-yellow);
    border-radius: 9px;
    box-shadow: 0 12px 24px rgba(37, 37, 40, 0.13);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

    .btn.btn-primary.login-button:hover,
    .btn.btn-primary.login-button:active {
        color: var(--auth-charcoal-deep);
        background: var(--auth-yellow-hover);
        border-color: var(--auth-yellow-hover);
        box-shadow: 0 15px 28px rgba(37, 37, 40, 0.17);
        transform: translateY(-1px);
    }

    .btn.btn-primary.login-button:focus-visible {
        color: var(--auth-charcoal-deep);
        background: var(--auth-yellow);
        border-color: var(--auth-charcoal);
        outline: 3px solid rgba(252, 194, 0, 0.38);
        outline-offset: 3px;
        box-shadow: none;
    }

.login-support {
    margin-top: 2rem;
    padding-top: 1.5rem;
    color: var(--auth-text-muted);
    border-top: 1px solid var(--auth-border);
    font-size: 0.84rem;
    line-height: 1.6;
    text-align: center;
}

.login-form-content .login-support {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

    .login-form-content .login-support span:first-child {
        color: var(--auth-text-secondary);
        font-weight: 700;
    }

.login-support p {
    margin: 0 0 0.3rem;
    color: var(--auth-text-secondary);
    font-weight: 750;
}

.login-support > span {
    display: block;
}

/* Sits directly under the Sign in button so the agreement is read before signing in. */
.login-terms {
    margin: 0.875rem 0 0;
    color: var(--auth-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

    .login-terms a {
        color: var(--auth-text-secondary);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .login-terms a:hover {
        color: var(--auth-text);
    }

.login-panel {
    width: calc(100% - 2rem);
    max-width: 460px;
    padding: 2.5rem;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(21, 21, 21, 0.15), 0 2px 8px rgba(21, 21, 21, 0.06);
}

.auth-state-card {
    text-align: center;
}

.auth-state-icon {
    display: grid;
    width: 4.25rem;
    height: 4.25rem;
    place-items: center;
    margin: 0 auto 1.5rem;
    border-radius: 999px;
    font-size: 1.75rem;
    font-weight: 800;
}

.auth-state-icon-danger {
    color: var(--auth-charcoal);
    background: var(--auth-yellow-soft);
    border: 1px solid rgba(252, 194, 0, 0.55);
}

.auth-state-header {
    text-align: center;
}

.auth-state-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    color: #5c4a00;
    background: var(--auth-yellow-soft);
    border: 1px solid rgba(252, 194, 0, 0.48);
    border-radius: 9px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-recovery-form .alert,
.login-form-content > .alert {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 9px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-form-note {
    margin-top: 1.5rem;
    padding: 1rem;
    color: var(--auth-text-muted);
    background: #f7f7f5;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    font-size: 0.8rem;
    line-height: 1.55;
}

.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 1.35rem auto 0;
    color: #5f5000;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .auth-back-link:hover {
        color: var(--auth-text);
    }

    .auth-back-link:focus-visible {
        outline: 3px solid rgba(252, 194, 0, 0.38);
        outline-offset: 4px;
        border-radius: 4px;
    }

.auth-password-requirements {
    display: grid;
    gap: 0.3rem;
    margin: 0.25rem 0 1.4rem;
    padding: 0.9rem 1rem;
    color: var(--auth-text-muted);
    background: var(--auth-yellow-soft);
    border: 1px solid rgba(252, 194, 0, 0.45);
    border-radius: 9px;
    font-size: 0.79rem;
    line-height: 1.5;
}

    .auth-password-requirements strong {
        color: var(--auth-text-secondary);
        font-size: 0.82rem;
    }

.auth-state-icon-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.auth-state-icon-warning {
    color: #5c4a00;
    background: var(--auth-yellow-soft);
    border: 1px solid rgba(252, 194, 0, 0.55);
}

.auth-state-actions {
    display: grid;
    gap: 0.25rem;
}

.auth-state-card .login-header {
    margin-bottom: 1.5rem;
}

.auth-state-card .auth-state-message {
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {

    .auth-password-requirements {
        font-size: 0.76rem;
    }
}
@media (max-width: 900px) {
    .login-page {
        padding: 1rem;
    }

    .login-shell {
        grid-template-columns: 1fr;
        width: min(100%, 680px);
        min-height: 0;
    }

    .login-brand-panel {
        min-height: 310px;
        padding: 2rem;
    }

        .login-brand-panel::before {
            top: -14rem;
            right: -10rem;
        }

    .login-brand-content {
        margin: 2.5rem 0 0;
    }

        .login-brand-content h2 {
            max-width: 36rem;
            font-size: clamp(2.25rem, 7vw, 3rem);
        }

    .login-brand-description {
        max-width: 35rem;
        margin-top: 1rem;
    }

    .login-feature-list{
        display: none;
    }

    .login-form-panel {
        padding: 3.25rem 2rem 3.75rem;
    }

    .login-form-content {
        max-width: 440px;
    }
}

@media (max-width: 600px) {
    .login-page {
        display: block;
        padding: 0;
        background: #ffffff;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-panel {
        min-height: 245px;
        padding: 1.5rem;
        border-radius: 0 0 24px 24px;
    }

    .login-brand-logo {
        max-width: 145px;
        max-height: 54px;
    }

    .login-brand-product {
        padding-left: 0.9rem;
        font-size: 0.72rem;
    }

    .login-brand-content {
        margin: 2rem 0 0;
    }

        .login-brand-content h2 {
            margin-top: 1rem;
            font-size: clamp(2rem, 10vw, 2.5rem);
        }

    .login-brand-description {
        display: none;
    }

    .login-form-panel {
        padding: 2.75rem 1.35rem 3rem;
        background: #ffffff;
    }

    .login-header h1 {
        font-size: 2.2rem;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.95rem;
    }

    .login-form-content .login-support {
        align-items: center;
        flex-direction: column;
        gap: 0.15rem;
    }

    .login-panel {
        width: calc(100% - 2rem);
        margin: 2rem auto;
        padding: 1.6rem;
    }
}

.auth-split {
    display: block;
    padding: 0;
    overflow: visible;
    background: var(--auth-surface);
    font-family: var(--ab-font-family);
}

.auth-split .login-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-split .login-brand-panel {
    justify-content: flex-start;
    padding: clamp(1.75rem, 5vh, 3.5rem) clamp(2rem, 5vw, 5rem);
}

    /* Echoes the angled stripes in the AlphaBiz logo and stays clear of the panel text. */
    .auth-split .login-brand-panel::before {
        top: auto;
        right: 0;
        bottom: 0;
        width: min(44%, 24rem);
        height: min(58%, 26rem);
        background: repeating-linear-gradient(115deg, var(--auth-yellow) 0 0.55rem, transparent 0.55rem 2rem);
        border: 0;
        border-radius: 0;
        opacity: 0.85;
        transform: none;
        -webkit-mask-image: radial-gradient(farthest-side at 100% 100%, #000000, transparent);
        mask-image: radial-gradient(farthest-side at 100% 100%, #000000, transparent);
    }

    .auth-split .login-brand-panel::after {
        content: none;
    }

.auth-split .login-brand-content {
    max-width: 31rem;
    margin: auto 0;
    padding-block: 2rem;
}

.login-brand-title {
    max-width: 11em;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.auth-split .login-brand-description {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-wrap: balance;
}

.auth-split .login-feature-list {
    gap: 1rem;
    margin-top: 2.25rem;
}

.auth-split .login-feature-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.auth-split .login-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--auth-yellow);
    background: rgba(252, 194, 0, 0.12);
    border: 0;
    border-radius: 10px;
}

    .auth-split .login-feature-icon::after {
        content: none;
    }

    .auth-split .login-feature-icon svg {
        width: 1.15rem;
        height: 1.15rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.75;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.auth-split .login-form-panel {
    padding: clamp(1.5rem, 5vh, 3rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--auth-surface);
}

.auth-split .login-form-content {
    max-width: 25rem;
}

.auth-split .login-header {
    margin-bottom: 1.75rem;
}

    .auth-split .login-header h1 {
        font-size: clamp(1.75rem, 2.4vw, 2.25rem);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    .auth-split .login-header p:not(.login-form-kicker) {
        margin-top: 0.6rem;
        color: var(--auth-text-secondary);
        font-size: 0.95rem;
        line-height: 1.5;
    }

.auth-split .login-field {
    margin-bottom: 1.1rem;
}

    .auth-split .login-field label {
        display: block;
        margin-bottom: 0.4rem;
        color: var(--auth-text);
        font-size: 0.875rem;
        font-weight: 600;
    }

    .auth-split .login-field .form-control {
        height: 3rem;
        min-height: 3rem;
        border-color: #8a8a85;
        border-radius: 8px;
        font-size: 1rem;
    }

        .auth-split .login-field .form-control:hover {
            border-color: var(--auth-charcoal);
        }

        .auth-split .login-field .form-control:focus {
            border-color: #7a6500;
            box-shadow: 0 0 0 3px rgba(252, 194, 0, 0.35);
        }

        .auth-split .login-field .form-control.invalid {
            border-color: var(--auth-danger);
            outline: 0;
        }

            .auth-split .login-field .form-control.invalid:focus {
                box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
            }

.login-caps-lock {
    margin: 0.4rem 0 0;
    color: #5c4a00;
    font-size: 0.82rem;
    font-weight: 600;
}

    /* Stays in the accessibility tree empty so the status change is announced. */
    .login-caps-lock:empty {
        margin: 0;
    }

.auth-split .login-options {
    margin: 0 0 1.5rem;
}

    .auth-split .login-options a {
        font-weight: 600;
        text-decoration: underline;
    }

        .auth-split .login-options a:focus-visible {
            outline: 3px solid var(--auth-charcoal);
            outline-offset: 3px;
            border-radius: 2px;
        }

.auth-split .btn.btn-primary.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding-block: 0.65rem;
    border-radius: 8px;
    box-shadow: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

    .auth-split .btn.btn-primary.login-button:hover,
    .auth-split .btn.btn-primary.login-button:active {
        box-shadow: none;
        transform: none;
    }

    .auth-split .btn.btn-primary.login-button:focus-visible {
        outline: 3px solid var(--auth-charcoal);
        outline-offset: 2px;
    }

    .auth-split .btn.btn-primary.login-button[aria-busy="true"] {
        cursor: progress;
    }

.login-button-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: login-button-spin 700ms linear infinite;
}

[aria-busy="true"] > .login-button-spinner {
    display: inline-block;
}

@keyframes login-button-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-split .login-form-content .login-support {
    display: block;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

    .auth-split .login-form-content .login-support span:first-child {
        font-weight: 600;
    }

    .auth-split .login-form-content .login-support a {
        color: #5f5000;
        font-weight: 600;
        text-underline-offset: 3px;
    }

.auth-split .auth-back-link {
    font-weight: 600;
}

.account-form-actions .login-button-spinner {
    margin-right: 0.5rem;
    vertical-align: -0.125em;
}

.auth-split .auth-state-card,
.auth-split .auth-state-header {
    text-align: left;
}

.auth-split .auth-state-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 0 1.5rem;
    border: 0;
    border-radius: 12px;
}

    .auth-split .auth-state-icon svg {
        width: 1.5rem;
        height: 1.5rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.auth-split .auth-state-icon-success {
    color: #166534;
    background: #f0fdf4;
}

.auth-split .auth-state-icon-warning {
    color: #5c4a00;
    background: var(--auth-yellow-soft);
}

.auth-split .auth-state-icon-danger {
    color: var(--auth-danger);
    background: var(--auth-danger-background);
}

.auth-split .auth-state-message,
.auth-split .auth-form-note {
    color: var(--auth-text-secondary);
    background: #f7f7f5;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-split .auth-state-actions {
    gap: 0.25rem;
}

.auth-split .login-form-content .alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Activation uses DevExpress controls; align them with the native auth fields. */
.auth-split .login-field .dxbl-text-edit {
    min-height: 3rem;
    border-color: #8a8a85;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-split .auth-dx-button {
    --dxbl-btn-bg: var(--auth-yellow);
    --dxbl-btn-border-color: var(--auth-yellow);
    --dxbl-btn-color: var(--auth-charcoal-deep);
    --dxbl-btn-hover-bg: var(--auth-yellow-hover);
    --dxbl-btn-hover-border-color: var(--auth-yellow-hover);
    --dxbl-btn-hover-color: var(--auth-charcoal-deep);
    min-height: 3rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .auth-split .login-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-split .login-brand-panel {
        min-height: 0;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

        .auth-split .login-brand-panel::before {
            width: 7rem;
            height: 100%;
        }

    .auth-split .login-brand-content {
        display: none;
    }

    .auth-split .login-brand-logo {
        max-width: 140px;
        max-height: 44px;
    }

    .auth-split .login-form-panel {
        padding: clamp(1.75rem, 6vh, 4rem) 1.5rem 2rem;
    }

    .auth-split .login-options {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .auth-split .login-form-panel {
        justify-content: flex-start;
    }
}

@media (max-height: 640px) {
    .auth-split .login-feature-list {
        display: none;
    }

    .auth-split .login-header {
        margin-bottom: 1rem;
    }

    .auth-split .login-form-content .login-support {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
}

@media (max-width: 900px) and (max-height: 480px) {
    .auth-split .login-brand-panel,
    .auth-split .login-header p {
        display: none;
    }

    .auth-split .login-shell {
        grid-template-rows: 1fr;
    }

    .auth-split .login-form-panel {
        padding-block: 0.75rem;
    }

    .auth-split .login-header {
        margin-bottom: 0.5rem;
    }

        .auth-split .login-header h1 {
            font-size: 1.4rem;
        }
}

/* The sign-in form is short enough to fit a landscape phone in two columns. */
@media (min-width: 601px) and (max-width: 900px) and (max-height: 480px) {
    .login-sign-in .login-form-content {
        max-width: 40rem;
    }

    .login-sign-in form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 1rem;
    }

    .login-sign-in .login-field,
    .login-sign-in .login-options {
        margin: 0;
    }

    .login-sign-in .login-options,
    .login-sign-in .login-button {
        grid-column: 1 / -1;
    }

    .login-sign-in .login-form-content .login-support {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .login-sign-in:has(.ab-feedback) .login-form-content .login-support {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-field .form-control,
    .btn.btn-primary.login-button {
        transition: none;
    }

        .btn.btn-primary.login-button:hover {
            transform: none;
        }

    .login-button-spinner {
        animation: none;
    }
}
