/* ==========================================================================
   INVITATION SYSTEM — FULL IMAGE BACKGROUND LOGIN
   ========================================================================== */

.enterprise-auth {
    --auth-navy-950: #061021;
    --auth-navy-900: #0a1830;
    --auth-navy-800: #142b4b;
    --auth-gold-500: #c79453;
    --auth-gold-400: #e0b778;
    --auth-text: #172233;
    --auth-muted: #748092;
    --auth-border: rgba(21, 34, 52, .13);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: grid;
    overflow-x: hidden;
    place-items: center;
    background: var(--auth-navy-950);
    color: var(--auth-text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

.enterprise-auth *,
.enterprise-auth *::before,
.enterprise-auth *::after {
    box-sizing: border-box;
}

.enterprise-auth a {
    text-decoration: none;
}

.auth-page-background {
    position: fixed;
    inset: -7%;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 18% 16%,
            rgba(224, 183, 120, .26),
            transparent 29%
        ),
        radial-gradient(
            circle at 84% 79%,
            rgba(60, 141, 194, .19),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #061021,
            #0d2547 54%,
            #214a70
        );
    transform: scale(1.04);
    animation:
        authBackgroundZoom
        24s ease-in-out
        infinite alternate;
}

.auth-page-background-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter:
        saturate(.92)
        contrast(1.04)
        brightness(.88);
}

.auth-page-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            120deg,
            rgba(3, 10, 25, .69),
            rgba(9, 27, 54, .34),
            rgba(3, 10, 25, .71)
        ),
        radial-gradient(
            circle at 15% 14%,
            rgba(224, 183, 120, .19),
            transparent 28%
        ),
        radial-gradient(
            circle at 84% 78%,
            rgba(70, 159, 211, .12),
            transparent 30%
        );
}

.auth-ambient-orb {
    position: fixed;
    z-index: 1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    opacity: .25;
    filter: blur(20px);
    animation:
        authOrbFloat
        13s ease-in-out
        infinite;
}

.auth-ambient-orb-one {
    top: -135px;
    left: -125px;
    background: rgba(224, 183, 120, .42);
}

.auth-ambient-orb-two {
    right: -160px;
    bottom: -145px;
    width: 430px;
    height: 430px;
    background: rgba(45, 146, 207, .34);
    animation-delay: -5s;
}

.auth-shell {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1180px, 100%);
    min-height: 680px;
    overflow: hidden;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(410px, .92fr);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 34px;
    background: rgba(5, 16, 36, .40);
    box-shadow:
        0 42px 125px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .13);
    backdrop-filter: blur(19px) saturate(125%);
    -webkit-backdrop-filter: blur(19px) saturate(125%);
    animation:
        authShellReveal
        .80s ease both;
}

.auth-hero {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 48px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            rgba(4, 13, 31, .72),
            rgba(10, 33, 65, .42)
        );
}

.auth-hero-decoration {
    position: absolute;
    top: -95px;
    right: -105px;
    width: 330px;
    height: 330px;
    border: 46px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
    animation:
        authSlowRotate
        24s linear
        infinite;
}

.auth-brand,
.auth-hero-content,
.auth-hero-card {
    position: relative;
    z-index: 2;
}

.auth-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 15px;
    animation:
        authFadeUp
        .75s ease .15s both;
}

.auth-brand-logo,
.auth-brand-mark {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 23px;
    background: rgba(255, 255, 255, .96);
    color: var(--auth-navy-900);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, .31),
        0 0 0 7px rgba(255, 255, 255, .055);
    font-size: 1.8rem;
}

.auth-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

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

.auth-brand-copy strong {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.auth-brand-copy small {
    margin-top: 3px;
    color: #f2d4aa;
    font-size: .70rem;
    font-weight: 720;
}

.auth-hero-content {
    margin: 48px 0;
    animation:
        authFadeUp
        .85s ease .28s both;
}

.auth-hero-badge {
    display: inline-flex;
    min-height: 36px;
    margin-bottom: 21px;
    padding: 8px 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(199, 148, 83, .18);
    color: #fff;
    font-size: .70rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.auth-hero h1 {
    max-width: 640px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.45rem, 5vw, 4.35rem);
    font-weight: 880;
    letter-spacing: -.052em;
    line-height: 1.02;
    text-shadow: 0 9px 31px rgba(0, 0, 0, .26);
}

.auth-hero-content > p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(231, 241, 255, .82);
    font-size: .98rem;
    line-height: 1.78;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 27px;
    gap: 10px;
}

.auth-feature-pill {
    display: inline-flex;
    min-height: 39px;
    padding: 9px 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .095);
    color: #fff;
    font-size: .72rem;
    font-weight: 760;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.auth-feature-pill i {
    color: #f1ca96;
}

.auth-hero-card {
    display: flex;
    padding: 19px 20px;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 21px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .17);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    animation:
        authFadeUp
        .85s ease .43s both;
}

.auth-hero-card-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 13px;
    background: rgba(224, 183, 120, .15);
    color: #f1ca96;
}

.auth-hero-card strong,
.auth-hero-card small {
    display: block;
}

.auth-hero-card strong {
    color: #fff;
    font-size: .80rem;
    font-weight: 850;
}

.auth-hero-card small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .60);
    font-size: .69rem;
    line-height: 1.5;
}

.auth-access {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 48px;
    place-items: center;
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, .98),
            rgba(245, 248, 252, .94)
        );
}

.auth-access-inner {
    width: min(100%, 435px);
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 26px;
    align-items: center;
    gap: 12px;
}

.auth-mobile-brand > span:last-child {
    display: grid;
    min-width: 0;
}

.auth-mobile-brand strong,
.auth-mobile-brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-mobile-brand strong {
    color: var(--auth-text);
    font-size: .90rem;
    font-weight: 850;
}

.auth-mobile-brand small {
    margin-top: 2px;
    color: var(--auth-muted);
    font-size: .66rem;
}

.auth-card {
    width: 100%;
    animation:
        authFadeUp
        .85s ease .24s both;
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            var(--auth-navy-900),
            var(--auth-gold-500)
        );
    color: #fff;
    box-shadow:
        0 16px 34px rgba(199, 148, 83, .24);
    font-size: 1.30rem;
}

.auth-card-kicker {
    display: block;
    margin-bottom: 7px;
    color: #9c6f37;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-card-header h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 2.10rem;
    font-weight: 900;
    letter-spacing: -.035em;
}

.auth-card-header p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: .80rem;
    line-height: 1.65;
}

.auth-alerts .alert {
    border: 0;
    border-radius: 15px;
    font-size: .76rem;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-field .form-label {
    margin-bottom: 8px;
    color: #394658;
    font-size: .70rem;
    font-weight: 800;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-help-link,
.auth-secure-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #956a36;
    font-size: .65rem;
    font-weight: 750;
}

.auth-input {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    color: #9a7446;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input .form-control {
    min-height: 54px;
    padding: 13px 48px 13px 46px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    color: var(--auth-text);
    font-size: .82rem;
    box-shadow: 0 8px 23px rgba(20, 34, 53, .04);
}

.auth-input .form-control::placeholder {
    color: #a0a9b5;
}

.auth-input .form-control:focus {
    border-color: rgba(199, 148, 83, .68);
    box-shadow:
        0 0 0 .23rem rgba(199, 148, 83, .12);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #748092;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    background: rgba(20, 43, 75, .06);
    color: var(--auth-navy-800);
}

.auth-field-status {
    position: absolute;
    top: 50%;
    right: 16px;
    display: none;
    color: #4f826c;
    transform: translateY(-50%);
}

.auth-field.is-valid .auth-field-status {
    display: block;
}

.auth-field.is-valid .form-control {
    border-color: rgba(79, 130, 108, .43);
}

.auth-field.is-invalid .form-control {
    border-color: rgba(180, 97, 97, .54);
}

.auth-field .invalid-feedback {
    margin-top: 7px;
    color: #a54f4f;
    font-size: .67rem;
}

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

.auth-caps-lock {
    display: flex;
    margin-top: 7px;
    align-items: center;
    gap: 6px;
    color: #9b6a2f;
    font-size: .67rem;
    font-weight: 720;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.auth-remember .form-check-label,
.auth-session-note {
    color: #687586;
    font-size: .68rem;
    font-weight: 700;
}

.auth-session-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-session-note i {
    color: #4f826c;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    padding: 13px 20px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            var(--auth-navy-900),
            var(--auth-gold-500)
        );
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
    box-shadow:
        0 16px 35px rgba(21, 34, 52, .22);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        opacity .22s ease;
}

.auth-submit > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    box-shadow:
        0 21px 43px rgba(21, 34, 52, .30);
    transform: translateY(-2px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
}

.auth-security-note {
    display: flex;
    padding: 14px 15px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(199, 148, 83, .25);
    border-radius: 15px;
    background: rgba(255, 247, 235, .88);
}

.auth-security-note > span {
    color: #9b6c35;
}

.auth-security-note p {
    margin: 0;
    color: #796552;
    font-size: .66rem;
    line-height: 1.55;
}

.auth-card-footer {
    display: flex;
    margin-top: 25px;
    padding-top: 19px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-top: 1px solid rgba(21, 34, 52, .08);
    color: #97a1ad;
    font-size: .64rem;
}

.auth-card-footer strong {
    color: #556172;
}

.auth-access-footer {
    display: flex;
    flex-wrap: wrap;
    margin-top: 21px;
    padding: 0 4px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, .58);
    font-size: .63rem;
    font-weight: 650;
}

.auth-access-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@keyframes authBackgroundZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform:
            scale(1.14)
            translate3d(-1%, -1%, 0);
    }
}

@keyframes authShellReveal {
    from {
        opacity: 0;
        transform:
            translateY(20px)
            scale(.985);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authSlowRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes authOrbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(28px, 22px, 0);
    }
}

@media (max-width: 950px) {
    .enterprise-auth {
        padding: 14px;
        align-items: start;
    }

    .auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 27px;
    }

    .auth-hero {
        min-height: 480px;
        padding: 32px;
    }

    .auth-hero-content {
        margin: 45px 0 34px;
    }

    .auth-access {
        padding: 38px 28px;
    }

    .auth-access-footer {
        color: #8993a1;
    }
}

@media (max-width: 575.98px) {
    .enterprise-auth {
        padding: 0;
    }

    .auth-shell {
        border: 0;
        border-radius: 0;
    }

    .auth-hero {
        min-height: 430px;
        padding: 24px 20px;
    }

    .auth-brand-logo,
    .auth-brand-mark {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 19px;
    }

    .auth-hero h1 {
        font-size: 2.28rem;
    }

    .auth-hero-content > p {
        font-size: .90rem;
    }

    .auth-access {
        padding: 34px 20px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-access-footer {
        justify-content: center;
        text-align: center;
    }
}

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