/* ╔═══════════════════════════════════════════════════════════════════════════╗
 * ║  RivoPlayer — Auth Pages Polish                                           ║
 * ║  Layered on top of styles.css for auth screens (login / register).        ║
 * ║  Activated via body.sx-auth-page class.                                   ║
 * ╚═══════════════════════════════════════════════════════════════════════════╝ */

body.sx-auth-page {
    background: #06080c;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Big drifting aurora for the empty viewport */
body.sx-auth-page::before {
    content: "";
    position: fixed;
    inset: -30%;
    background:
        radial-gradient(50% 40% at 25% 25%, rgba(124, 58, 237, .42) 0%, transparent 60%),
        radial-gradient(45% 35% at 75% 75%, rgba(99, 102, 241, .38) 0%, transparent 60%),
        radial-gradient(40% 30% at 50% 50%, rgba(6, 182, 212, .18) 0%, transparent 60%);
    animation: sx-auth-drift 22s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

/* Faint grid pattern on top of the aurora */
body.sx-auth-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg,  rgba(255, 255, 255, .015) 0 1px, transparent 1px 80px);
    pointer-events: none;
    z-index: 0;
}

@keyframes sx-auth-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.08); }
}

body.sx-auth-page main { position: relative; z-index: 1; width: 100%; padding: 24px 16px; }

body.sx-auth-page .nsofts-auth .card {
    background: rgba(20, 23, 30, .72) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .55),
        0 0 80px rgba(124, 58, 237, .22),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.sx-auth-page .nsofts-auth .card-body h5 {
    font-size: 1.65rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.sx-auth-page .nsofts-auth .card-body p { color: #94a3b8; font-size: .92rem; }

body.sx-auth-page .form-label { color: #e2e8f0; font-weight: 600; }

body.sx-auth-page .form-control {
    background: rgba(255, 255, 255, .04) !important;
    border-color: rgba(255, 255, 255, .1) !important;
    color: #f8fafc !important;
}
body.sx-auth-page .form-control:focus {
    background: rgba(255, 255, 255, .06) !important;
    border-color: #7c3aed !important;
}

body.sx-auth-page .text-decoration-none { color: #a78bfa; transition: color .15s ease; }
body.sx-auth-page .text-decoration-none:hover { color: #c4b5fd; }

body.sx-auth-page .btn-primary {
    padding: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    font-size: .95rem;
}

body.sx-auth-page .form-check-label { color: #cbd5e1; }
