.auth-body {
    min-height: 100vh;
    background-color: #0b0b0b;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
    overflow-x: hidden;
}

body.login-screen.auth-body {
    background-color: #0b0b0b;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.auth-body::before,
.auth-body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.auth-body::before {
    inset: -3%;
    background:
        radial-gradient(circle at 30% 20%, rgba(220, 38, 38, 0.16), transparent 32%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.12), transparent 34%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.035), transparent 62%);
    opacity: 0.78;
    transform: translate3d(-1%, -1%, 0) scale(1);
    animation: authGlowDrift 32s ease-in-out infinite alternate;
}

.auth-body::after {
    content: none;
}

.auth-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.4rem;
}

.auth-panel-wrap {
    width: min(100%, 540px);
    display: grid;
    gap: 1.6rem;
    justify-items: center;
}

.auth-brand {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1.05rem;
    text-align: center;
    padding-top: 1.15rem;
}

.auth-brand::before {
    content: none;
}

.auth-logo-shell {
    position: relative;
    z-index: 1;
    width: 196px;
    height: 196px;
    padding: 1.45rem;
    border-radius: 40px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.88) 0%, rgba(34, 34, 34, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.auth-logo-shell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand > div:last-child {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.5rem;
}

.auth-brand h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.auth-brand p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.login-title,
.login-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.auth-login-card {
    width: 100%;
    padding: 1.55rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(220, 38, 38, 0.08),
        0 0 42px rgba(124, 58, 237, 0.16);
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(220, 38, 38, 0.08),
        0 0 42px rgba(124, 58, 237, 0.16);
}

.auth-login-card .section-heading {
    text-align: center;
}

.auth-login-card .section-heading h2 {
    font-size: 1.65rem;
    color: #ffffff;
}

.auth-login-card .section-heading p {
    color: rgba(255, 255, 255, 0.7);
}

.auth-login-card form {
    display: grid;
    gap: 1rem;
}

.auth-login-card label {
    color: #ffffff;
}

.auth-login-card input {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-login-card input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.auth-login-card input:focus {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 4px rgba(177, 15, 31, 0.2);
}

.auth-login-card .field-help {
    color: rgba(255, 255, 255, 0.62);
}

.auth-footer-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
}

.auth-powered {
    margin-top: 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-shadow:
        0 0 12px rgba(220, 38, 38, 0.35),
        0 0 24px rgba(124, 58, 237, 0.22);
}

.auth-powered strong {
    color: #ffffff;
    font-weight: 700;
}

@keyframes authGlowDrift {
    from {
        transform: translate3d(-1%, -1%, 0) scale(1);
        opacity: 0.72;
    }

    to {
        transform: translate3d(1%, 1%, 0) scale(1.04);
        opacity: 0.96;
    }
}

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

@media (max-width: 640px) {
    .auth-logo-shell {
        width: 156px;
        height: 156px;
        padding: 1.05rem;
        border-radius: 30px;
    }

    .auth-login-card {
        padding: 1.25rem;
        border-radius: 24px;
    }
}
