.auth-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(1rem, 4vw, 3rem);
    overflow: hidden;
    color: #f8fafc;
    isolation: isolate;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(120, 83, 20, .2), transparent 42%),
        linear-gradient(145deg, #080a0d 0%, #11151b 48%, #070809 100%);
}

.auth-mesh,
.auth-mesh::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-mesh::before {
    content: "";
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 20%, transparent 80%);
}

.auth-orb {
    position: absolute;
    display: block;
    width: clamp(18rem, 42vw, 38rem);
    aspect-ratio: 1;
    opacity: .48;
    filter: blur(72px);
    border-radius: 999px;
    animation: auth-mesh-drift 18s ease-in-out infinite alternate;
}

.auth-orb-one {
    top: -18%;
    left: -10%;
    background: rgba(181, 126, 29, .72);
}

.auth-orb-two {
    right: -14%;
    bottom: -25%;
    background: rgba(224, 173, 69, .48);
    animation-duration: 23s;
    animation-direction: alternate-reverse;
}

.auth-orb-three {
    top: 34%;
    left: 43%;
    width: clamp(12rem, 26vw, 25rem);
    background: rgba(95, 72, 28, .52);
    animation-duration: 15s;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: rgba(18, 20, 24, .88);
    border: 1px solid rgba(226, 183, 85, .3);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .08);
}

@supports (backdrop-filter: blur(18px)) {
    .auth-card {
        background: rgba(18, 20, 24, .72);
        backdrop-filter: blur(18px) saturate(125%);
    }
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    width: auto;
    max-width: 8rem;
    height: 3.75rem;
    object-fit: contain;
}

.auth-heading {
    margin-bottom: 1.75rem;
    text-align: center;
}

.auth-eyebrow {
    display: block;
    margin-bottom: .5rem;
    color: #e5bd61;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0 0 .5rem;
    color: #fff;
    font-size: clamp(1.55rem, 5vw, 2rem);
    letter-spacing: -.025em;
}

.auth-heading p,
.auth-footer {
    color: #aeb6c2;
}

.auth-heading p {
    margin: 0;
}

.auth-card .form-label,
.auth-card .form-check-label {
    color: #e9edf2;
}

.auth-card .form-control,
.auth-card .input-group-text {
    min-height: 2.85rem;
    color: #f8fafc;
    background: rgba(255, 255, 255, .065);
    border-color: rgba(255, 255, 255, .16);
}

.auth-card .form-control::placeholder {
    color: #858e9b;
}

.auth-card .form-control:focus {
    background: rgba(255, 255, 255, .09);
    border-color: #d7a83f;
    box-shadow: 0 0 0 .2rem rgba(215, 168, 63, .16);
}

.auth-password-toggle {
    display: inline-flex;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    padding: .5rem .75rem;
    cursor: pointer;
}

.auth-password-toggle .icon {
    width: 1.15rem;
    height: 1.15rem;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: #f0ca70;
    background: rgba(255, 255, 255, .11);
}

.auth-card .form-check-input:checked {
    background-color: #bd8b27;
    border-color: #bd8b27;
}

.auth-submit {
    min-height: 2.9rem;
    color: #17130a;
    font-weight: 700;
    background: linear-gradient(135deg, #f0ce7a, #bd8721);
    border: 0;
    box-shadow: 0 .65rem 1.5rem rgba(153, 104, 15, .22);
}

.auth-submit:hover,
.auth-submit:focus-visible {
    color: #0d0b07;
    background: linear-gradient(135deg, #f6d98e, #ce982f);
    box-shadow: 0 .75rem 1.75rem rgba(153, 104, 15, .3);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    color: #302817;
    opacity: .72;
    transform: none;
}

.auth-loading {
    display: none;
}

.auth-footer {
    margin: 1.75rem 0 0;
    font-size: .75rem;
    letter-spacing: .04em;
    text-align: center;
}

@keyframes auth-mesh-drift {
    from {
        transform: translate3d(-4%, -3%, 0) scale(1);
    }

    to {
        transform: translate3d(8%, 7%, 0) scale(1.14);
    }
}

@media (max-width: 420px) {
    .auth-shell {
        align-items: stretch;
        padding: .75rem;
    }

    .auth-card {
        align-self: center;
        padding: 1.5rem 1.25rem;
        border-radius: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-orb {
        animation: none;
    }

    .auth-submit {
        transition: none;
    }
}
