body.auth-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 24%),
        linear-gradient(135deg, #0b1120 0%, #111827 55%, #1f2937 100%);
}

.login_bg {
    min-height: 100vh;
    overflow-x: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 32px 24px;
    isolation: isolate;
}

.login_bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.08), transparent 20%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.42), rgba(30, 41, 59, 0.22));
}

.login_bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(8, 15, 28, 0.14);
    backdrop-filter: blur(18px) saturate(120%);
}

.auth-shell {
    width: min(460px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: -1;
    pointer-events: none;
    filter: blur(18px);
}

.auth-shell::before {
    width: 180px;
    height: 180px;
    top: -34px;
    left: -48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-shell::after {
    width: 130px;
    height: 130px;
    right: -26px;
    bottom: -24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-chip--muted {
    background: rgba(var(--bs-primary-rgba));
    border-color: rgba(var(--bs-primary-rgb), 0.14);
    color: var(--bs-primary);
}

#auth .card.auth-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.64));
    box-shadow:
        0 24px 60px rgba(2, 8, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(26px) saturate(130%);
}

#auth #auth-box {
    padding: 36px 34px 32px;
    height: auto;
}

#auth .auth-logo {
    margin-bottom: 28px;
    text-align: center;
}

#auth #auth-box .auth-logo img {
    width: 220px;
    max-width: 100%;
    object-fit: contain;
}

.auth-copy {
    display: grid;
    gap: 18px;
    justify-items: center;
}

#auth .login_heading {
    margin-bottom: 0;
    text-align: center;
}

#auth .login_heading h3 {
    margin-bottom: 8px;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

#auth .login_heading p {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
}

#auth .auth-field {
    position: relative;
}

#auth .form-input {
    height: 58px;
    padding-right: 52px;
    background-color: rgba(255, 255, 255, 0.46);
}

#auth .form-floating > label {
    color: #6b7280;
}

.login-border {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    box-shadow: none;
}

.login-border:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.12);
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
}

.password-toggle:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

#auth .login_btn {
    height: 56px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 16px 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 16px 28px rgba(var(--bs-primary-rgb), 0.22);
}

#auth .login_btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    filter: brightness(0.98);
}

.auth-actions {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.auth-note {
    color: #64748b;
    text-align: center;
    font-size: 0.92rem;
}

.auth-demo-link {
    margin-top: 18px;
    color: #b91c1c;
    font-size: 0.92rem;
}

.auth-demo {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-demo__header {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    text-align: center;
}

.auth-demo__header span {
    font-weight: 700;
    color: #0f172a;
}

.auth-demo__header small {
    color: #6b7280;
}

.auth-demo__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-demo__actions .btn {
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.5);
    color: #0f172a;
}

.auth-demo__actions .btn:hover {
    background: rgba(255, 255, 255, 0.72);
}

@media screen and (max-width: 991px) {
    .login_bg {
        padding: 24px 18px;
    }

    .auth-shell::before {
        left: -28px;
    }

    .auth-shell::after {
        right: -18px;
    }
}

@media screen and (max-width: 767px) {
    #auth #auth-box {
        padding: 28px 22px;
    }

    .auth-demo__actions {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .login_bg {
        padding: 16px;
    }

    .auth-shell::before,
    .auth-shell::after {
        opacity: 0.65;
        transform: scale(0.82);
    }

    #auth .login_heading h3 {
        font-size: 1.7rem;
    }
}
