:root {
    --auth-ink: #132238;
    --auth-muted: #5f6f82;
    --auth-line: #dce4ec;
    --auth-surface: #ffffff;
    --auth-canvas: #edf3f7;
    --auth-primary: #c94b20;
    --auth-primary-dark: #a83c18;
    --auth-focus: #1f73b7;
    --auth-radius: 18px;
}

body.login {
    min-height: 100vh;
    background: var(--auth-canvas);
}

.auth-experience,
.auth-experience__main {
    min-height: 100vh;
}

#main-container.auth-experience__main {
    display: grid;
    grid-template-columns: minmax(420px, 42%) minmax(0, 58%);
    background: var(--auth-surface);
}

.auth-experience__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5.5rem);
    position: relative;
    z-index: 2;
}

.auth-experience__content {
    width: min(100%, 31rem);
}

.auth-experience__content--wide {
    width: min(100%, 38rem);
}

.auth-experience__brand {
    display: inline-flex;
    margin-bottom: clamp(2.25rem, 7vh, 4.75rem);
    border-radius: .5rem;
}

.auth-experience__brand img {
    display: block;
    width: min(15.5rem, 72vw);
    height: auto;
}

.auth-experience__header {
    margin-bottom: 1.75rem;
}

.auth-experience__eyebrow,
.auth-experience__visual-kicker {
    margin: 0 0 .65rem;
    color: var(--auth-primary-dark);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-experience__title {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-transform: none;
}

.auth-experience__description {
    max-width: 35rem;
    margin: .85rem 0 0;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-experience__body .form-group {
    margin-bottom: 1rem;
}

.auth-experience__body label {
    color: var(--auth-ink);
    font-size: .86rem;
    font-weight: 650;
}

.auth-experience__body .form-control,
.auth-experience__body .form-control-alt {
    min-height: 3.25rem;
    padding: .78rem 1rem;
    border: 1px solid var(--auth-line);
    border-radius: .75rem;
    background: #f8fafc;
    color: var(--auth-ink);
    box-shadow: none;
}

.auth-experience__body .form-control:focus,
.auth-experience__body .form-control-alt:focus {
    border-color: var(--auth-focus);
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(31, 115, 183, .17);
}

.auth-experience__body .btn {
    min-height: 3rem;
    border-radius: .75rem;
    font-weight: 650;
}

.auth-experience__body .btn-hero-success,
.auth-experience__body .btn-hero-warning,
.auth-experience__body .btn-hero-primary {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
    color: #fff;
    box-shadow: 0 .7rem 1.8rem rgba(168, 60, 24, .2);
}

.auth-experience__body .btn-hero-success:hover,
.auth-experience__body .btn-hero-success:focus,
.auth-experience__body .btn-hero-warning:hover,
.auth-experience__body .btn-hero-warning:focus,
.auth-experience__body .btn-hero-primary:hover,
.auth-experience__body .btn-hero-primary:focus {
    border-color: var(--auth-primary-dark);
    background: var(--auth-primary-dark);
    color: #fff;
}

.auth-experience__body .btn-hero-secondary {
    border: 1px solid var(--auth-line);
    background: #fff;
    color: var(--auth-ink);
    box-shadow: none;
}

.auth-experience__body .btn-hero-secondary:hover,
.auth-experience__body .btn-hero-secondary:focus {
    border-color: #aebdca;
    background: #f5f8fa;
    color: var(--auth-ink);
}

.auth-experience a:focus-visible,
.auth-experience button:focus-visible,
.auth-experience input:focus-visible {
    outline: 3px solid rgba(31, 115, 183, .45);
    outline-offset: 3px;
}

.auth-experience__divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.25rem 0;
    color: var(--auth-muted);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.auth-experience__footer {
    margin-top: 1.6rem;
    color: var(--auth-muted);
    font-size: .82rem;
}

.auth-experience__footer a {
    color: #3c5870;
    font-weight: 600;
}

.auth-experience__visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 24%, rgba(236, 133, 78, .7), transparent 25%),
        linear-gradient(145deg, #142a43, #071522 72%);
}

@media (min-width: 992px) {
    .auth-experience__visual--upstream {
        background-image: url('../assets/upstream/img/login-operations-v2-960.webp');
        background-image: image-set(
            url('../assets/upstream/img/login-operations-v2-960.avif') type('image/avif'),
            url('../assets/upstream/img/login-operations-v2-960.webp') type('image/webp')
        );
        background-position: 61% center;
        background-size: cover;
    }
}

@media (min-width: 1200px) {
    .auth-experience__visual--upstream {
        background-image: url('../assets/upstream/img/login-operations-v2-1536.webp');
        background-image: image-set(
            url('../assets/upstream/img/login-operations-v2-1536.avif') type('image/avif'),
            url('../assets/upstream/img/login-operations-v2-1536.webp') type('image/webp')
        );
    }
}

.auth-experience__visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 19, 31, .2), transparent 30%),
        linear-gradient(0deg, rgba(5, 18, 30, .82), transparent 55%);
}

.auth-experience__visual-copy {
    position: absolute;
    right: clamp(2rem, 5vw, 5rem);
    bottom: clamp(2rem, 6vh, 5rem);
    left: clamp(2rem, 5vw, 5rem);
    max-width: 34rem;
    color: #fff;
}

.auth-experience__visual-copy .auth-experience__visual-kicker {
    color: #ffb587;
}

.auth-experience__visual-copy p {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2.35rem);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.18;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.auth-company-list {
    max-height: min(28rem, 48vh);
    overflow-y: auto;
    border: 1px solid var(--auth-line);
    border-radius: .9rem;
}

.auth-company-list .list-group-item {
    display: flex;
    align-items: center;
    min-height: 3.6rem;
    border: 0;
    border-bottom: 1px solid var(--auth-line);
    color: var(--auth-ink);
    font-weight: 600;
}

.auth-company-list .list-group-item:last-child {
    border-bottom: 0;
}

.auth-company-list .list-group-item:hover,
.auth-company-list .list-group-item:focus {
    background: #edf5fa;
    color: #174e77;
}

.auth-company-list__icon {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    margin-right: .8rem;
    place-items: center;
    border-radius: .55rem;
    background: #e7eef4;
    color: #355873;
}

#view-hide-password {
    position: absolute;
    top: .38rem;
    right: .35rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-color: transparent;
    background: transparent;
    color: var(--auth-muted);
    box-shadow: none;
}

@media (max-width: 991.98px) {
    #main-container.auth-experience__main {
        grid-template-columns: 1fr;
    }

    .auth-experience__panel {
        min-height: 100vh;
        padding: 2.25rem clamp(1.25rem, 7vw, 4rem);
    }

    .auth-experience__brand {
        margin-bottom: 2.5rem;
    }

    .auth-experience__visual {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-experience__panel {
        align-items: flex-start;
        padding-top: 1.75rem;
    }

    .auth-experience__brand {
        margin-bottom: 2rem;
    }

    .auth-experience__title {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-experience *,
    .auth-experience *::before,
    .auth-experience *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
