/* ============================================
   NEON LOGIN — Cyberpunk Masterpiece
   ============================================ */

:root {
    --neon-cyan:    #00f0ff;
    --neon-magenta: #ff00e4;
    --neon-green:   #00ff88;
    --neon-red:     #ff0044;
    --neon-yellow:  #f0e100;
    --bg-deep:      #07070d;
    --bg-surface:   rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-muted:   rgba(255, 255, 255, 0.55);
    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: var(--neon-cyan); color: var(--bg-deep); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ---------- Cyberpunk Grid ---------- */
.cyber-grid {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: grid-move 35s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.cyber-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, var(--bg-deep) 85%);
    pointer-events: none;
}

@keyframes grid-move {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

/* ---------- Neon Glow Pulse ---------- */
@keyframes glow-pulse {
    0%, 100% {
        border-color: rgba(0, 240, 255, 0.15);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.04);
    }
    50% {
        border-color: rgba(0, 240, 255, 0.35);
        box-shadow:
            0 0 40px rgba(0, 240, 255, 0.10),
            0 0 80px rgba(0, 240, 255, 0.05);
    }
}

/* ---------- Neon Card ---------- */
.card-neon {
    background: var(--bg-surface);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 1.25rem;
    animation: glow-pulse 5s ease-in-out infinite;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-neon:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.08),
        0 0 80px rgba(0, 240, 255, 0.04);
}

/* ---------- Neon Logo / Header ---------- */
.neon-logo-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.neon-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.85rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #fff;
    text-shadow:
        0 0 8px  rgba(0, 240, 255, 0.6),
        0 0 20px rgba(0, 240, 255, 0.3),
        0 0 50px rgba(0, 240, 255, 0.1);
}

.neon-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ---------- Neon Labels ---------- */
.neon-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    transition: color 0.35s ease;
}

/* ---------- Neon Inputs ---------- */
.input-neon {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2) !important;
    color: #fff !important;
    padding: 0.65rem 0 !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none !important;
    outline: none !important;
}

.input-neon::placeholder {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

.input-neon:focus {
    border-bottom-color: var(--neon-cyan) !important;
    box-shadow: 0 6px 20px -8px rgba(0, 240, 255, 0.25) !important;
}

.input-neon:focus ~ .neon-label {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.input-neon:-webkit-autofill,
.input-neon:-webkit-autofill:hover,
.input-neon:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 40px #0d0d16 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ---------- Password Toggle ---------- */
.password-wrapper { position: relative; }

.password-toggle {
    position: absolute;
    right: 0;
    bottom: 0.65rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, filter 0.3s ease;
    line-height: 0;
}

.password-toggle:hover {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.password-toggle:focus-visible {
    outline: 1.5px solid var(--neon-cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

.eye-closed { display: none; }

/* ---------- Neon Button ---------- */
.btn-neon {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    border: none;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
    box-shadow:
        0 0 18px rgba(0, 240, 255, 0.25),
        0 0 40px rgba(0, 240, 255, 0.08);
    z-index: 1;
    isolation: isolate;
}

.btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-neon:hover::before { opacity: 1; }

.btn-neon:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.40),
        0 0 60px rgba(0, 240, 255, 0.15),
        0 0 90px rgba(255, 0, 228, 0.15);
}

.btn-neon:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.08s;
}

.btn-neon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ---------- Neon Alert ---------- */
.neon-alert {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid;
    border-radius: 0.65rem;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.7rem 1rem;
    animation: slideDown 0.35s ease;
}

.neon-alert.alert-danger {
    border-color: var(--neon-red);
    box-shadow: 0 0 18px rgba(255, 0, 68, 0.20);
}

.neon-alert.alert-success {
    border-color: var(--neon-green);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.20);
}

/* ---------- Shake ---------- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-4px); }
    30%, 60%, 90% { transform: translateX(4px); }
}

.shake { animation: shake 0.5s ease; }

/* ---------- Slide Down ---------- */
@keyframes slideDown {
    0%   { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.neon-footer {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
}

/* ---------- Focus visible ---------- */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

/* ============================================
   DASHBOARD
   ============================================ */

/* --- Navbar Neon --- */
.navbar-neon {
    background: rgba(7, 7, 13, 0.88) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.10);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.04);
}

.navbar-neon .navbar-brand {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.navbar-neon .btn-outline-neon {
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    background: transparent;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 0.35rem;
    transition: all 0.3s ease;
}

.navbar-neon .btn-outline-neon:hover {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.avatar-neon-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* --- Dashboard Cards --- */
.card-dashboard {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 1rem;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-dashboard:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.06);
}

.card-dashboard .card-title {
    font-family: var(--font-display);
    color: #fff;
    letter-spacing: 1.5px;
    font-size: 1rem;
}

.card-dashboard .card-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Avatar Neon (large) --- */
.avatar-neon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    flex-shrink: 0;
}

/* --- Welcome --- */
.welcome-neon h4 {
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    font-size: 1.15rem;
}

.welcome-neon p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Stat Icon --- */
.stat-neon {
    font-size: 1.6rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
    line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .card-neon {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .neon-title {
        font-size: 1.35rem;
        letter-spacing: 4px;
    }

    .card-dashboard { border-radius: 0.65rem; }
}
