/* =====================================================================
 * NOVA — Login premium (scoped: .nv-login-*)
 * No afecta a clases globales. Cargado solo desde auth/login.php.
 * ===================================================================== */
body.nv-login-body {
    background: #0B0D10;
    color: #F5F7FA;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: "ss01", "cv11";
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Grid background sutil */
body.nv-login-body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(91,140,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,140,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, #000 25%, transparent 90%);
            mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, #000 25%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

/* Glow azul cinematografico */
body.nv-login-body::after {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(800px 500px at 78% 28%, rgba(91,140,255,0.10), transparent 60%),
        radial-gradient(600px 400px at 22% 78%, rgba(167,139,250,0.07), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.nv-login-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Back link */
.nv-login-back {
    position: absolute;
    top: 24px; left: 28px;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #232833;
    background: rgba(23,26,31,.6);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    transition: color .18s, border-color .18s, transform .18s;
    z-index: 10;
}
.nv-login-back:hover {
    color: #F5F7FA;
    border-color: #5B8CFF;
    transform: translateX(-2px);
}

/* HERO (izquierda) */
.nv-login-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    position: relative;
}
.nv-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 64px;
}
.nv-brand-mark {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5B8CFF 0%, #A78BFA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(91,140,255,0.32), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.nv-brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}
.nv-brand-sub {
    font-size: 10px;
    letter-spacing: 3px;
    color: #6B7280;
    margin-top: 4px;
}

.nv-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(91,140,255,0.10);
    border: 1px solid rgba(91,140,255,0.24);
    color: #BFDBFE;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 26px;
    width: -moz-fit-content;
    width: fit-content;
}
.nv-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #5B8CFF;
    box-shadow: 0 0 10px #5B8CFF;
}

.nv-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.022em;
    margin: 0 0 20px;
}
.nv-hero-accent {
    background: linear-gradient(135deg, #5B8CFF 0%, #A78BFA 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.nv-hero-sub {
    font-size: 16px;
    color: #9CA3AF;
    max-width: 440px;
    line-height: 1.55;
    margin: 0;
}

/* PANEL (derecha) */
.nv-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.nv-login-card {
    width: 100%;
    max-width: 420px;
}
.nv-login-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.022em;
    margin: 0 0 6px;
    color: #F5F7FA;
}
.nv-login-sub {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0 0 28px;
}
.nv-login-card .form-label {
    color: #9CA3AF !important;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.nv-input-wrap {
    position: relative;
    margin-bottom: 16px;
}
.nv-input-wrap > .bi {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
.nv-input-wrap > .form-control {
    background: #1B1F27 !important;
    border: 1px solid #232833 !important;
    color: #F5F7FA !important;
    padding-left: 42px !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.nv-input-wrap > .form-control::placeholder { color: #6B7280; }
.nv-input-wrap > .form-control:focus {
    border-color: #5B8CFF !important;
    box-shadow: 0 0 0 4px rgba(91,140,255,0.18) !important;
    background: #171A1F !important;
}

.nv-login-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(180deg, #6B96FF 0%, #4F7EFF 100%);
    color: #0B0D10;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.005em;
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px rgba(91,140,255,0.32);
    transition: transform .14s ease, box-shadow .22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 8px;
}
.nv-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 32px rgba(91,140,255,0.48);
}
.nv-login-btn:active { transform: translateY(0) scale(.985); }

.nv-login-divider {
    margin: 24px 0 18px;
    border-top: 1px solid #232833;
}
.nv-login-footer {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}
.nv-login-footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color .18s;
}
.nv-login-footer a:hover { color: #5B8CFF; }

.nv-login-foot {
    position: fixed;
    bottom: 18px;
    left: 0; right: 0;
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    z-index: 1;
    pointer-events: none;
}
.nv-login-foot strong { color: #9CA3AF; font-weight: 600; }

/* Alerts refinadas */
.nv-login-card .alert {
    border-radius: 12px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.nv-login-card .alert-danger {
    background: rgba(248,113,113,.10);
    color: #FCA5A5;
    border-color: rgba(248,113,113,.24);
}
.nv-login-card .alert-success {
    background: rgba(52,211,153,.10);
    color: #A7F3D0;
    border-color: rgba(52,211,153,.24);
}

/* Aparicion suave */
@keyframes nv-login-in {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.nv-login-hero, .nv-login-card {
    animation: nv-login-in .5s cubic-bezier(.16, 1, .3, 1) both;
}
.nv-login-card { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
    .nv-login-hero, .nv-login-card { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
    .nv-login-wrap { grid-template-columns: 1fr; }
    .nv-login-hero { display: none; }
    .nv-login-panel { padding: 100px 24px 80px; }
    .nv-hero-title { font-size: 40px; }
}
@media (max-width: 480px) {
    .nv-login-back { top: 16px; left: 16px; padding: 6px 10px; font-size: 12px; }
    .nv-login-panel { padding: 88px 20px 100px; }
    .nv-login-title { font-size: 24px; }
}
