/* ===========================
   VARIABLES & RESET
   =========================== */

:root {
    --bg-main: #020617;
    --bg-card: rgba(15, 23, 42, 0.96);
    --bg-card-soft: rgba(15, 23, 42, 0.88);
    --border-subtle: rgba(148, 163, 184, 0.45);
    --border-strong: rgba(96, 165, 250, 0.75);
    --text-main: #f9fafb;
    --text-muted: rgba(249, 250, 251, 0.72);
    --accent-blue: #2563eb;
    --accent-blue-soft: #60a5fa;
    --accent-green: #22c55e;
}

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

/* ===========================
   FONDO GENERAL (PORTAL LOGEADO)
   =========================== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.25), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.22), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.2), transparent 55%),
        var(--bg-main);
    background-size: cover;
    animation: bg-move 34s ease-in-out infinite alternate;
}

@keyframes bg-move {
    0% {
        background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%;
    }
    100% {
        background-position: 16% 8%, 90% 6%, 6% 92%, 86% 96%;
    }
}

/* Rejilla sutil encima del fondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

/* Tipografía global clara */
h1, h2, h3, h4, h5, h6,
p, label, span, small, strong, td, th, li {
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ===========================
   LAYOUT CON SIDEBAR
   =========================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR IZQUIERDA */
.sidebar {
    position: relative;
    width: 260px;
    padding: 1.4rem 0 1.4rem 1.4rem;
    z-index: 2;
}

.sidebar-inner {
    position: relative;
    height: 100%;
    border-radius: 1.4rem;
    padding: 1.4rem 1.1rem 1.1rem 1.1rem;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 1),
        0 0 0 1px rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
}

/* Barra luminosa animada a la izquierda */
.sidebar-accent {
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 0.4rem;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(96, 165, 250, 0),
        rgba(96, 165, 250, 1),
        rgba(34, 197, 94, 1),
        rgba(96, 165, 250, 0)
    );
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.85));
    animation: sidebar-glow 3.6s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes sidebar-glow {
    0% {
        opacity: 0.55;
        transform: translateY(-8px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(8px);
    }
}

/* Logo */
.sidebar-logo {
    position: relative;
    text-align: left;
}

.sidebar-logo-img {
    height: 46px;
    border-radius: 0.8rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.7));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.sidebar-logo:hover .sidebar-logo-img {
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.95));
}

.sidebar-logo-glow {
    position: absolute;
    inset: 50% -10px auto;
    height: 22px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.75), transparent 70%);
    opacity: 0.55;
    filter: blur(4px);
    pointer-events: none;
}

/* Usuario */
.sidebar-user {
    padding: 0.75rem 0.75rem;
    border-radius: 0.9rem;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.sidebar-user-company {
    font-size: 0.95rem;
    font-weight: 600;
}

.sidebar-user-contact {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-user-logo {
    height: 32px;
    width: 32px;
    border-radius: 0.6rem;
    object-fit: contain;
    margin-left: 0.6rem;
    box-shadow: 0 0 15px rgba(15, 23, 42, 0.3);
}

/* Navegación */
.sidebar-nav {
    margin-top: 0.5rem;
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.sidebar-menu {
    margin: 0;
    padding-left: 0;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.2rem;
    border-radius: 0.8rem;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-main);
    opacity: 0.84;
    transition:
        background 0.18s ease,
        opacity 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.18s ease;
}

.sidebar-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.7);
}

.sidebar-link:hover {
    background: rgba(15, 23, 42, 0.95);
    opacity: 1;
    transform: translateX(1px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(59, 130, 246, 0.88));
    opacity: 1;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.7);
}

.sidebar-link.active .sidebar-link-dot {
    background: #bbf7d0;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.95);
}

/* Footer botón salir */
.sidebar-footer {
    margin-top: auto;
}

/* MAIN DERECHA */
.app-main {
    flex: 1;
    padding: 1.7rem 2.1rem 2.1rem 1.1rem;
}

.container {
    max-width: 1200px;
}

/* ===========================
   CARDS & PANELES
   =========================== */

.card {
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at top left, var(--bg-card), var(--bg-card-soft));
    color: var(--text-main);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.98),
        0 0 0 1px rgba(15, 23, 42, 0.92);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 1);
    border-color: var(--border-strong);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
}

.card-header {
    border-radius: 1.1rem 1.1rem 0 0 !important;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0.25));
    border-bottom: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-main);
}

/* ===========================
   TABLAS
   =========================== */

.table {
    color: var(--text-main);
}

.table thead {
    background: rgba(15, 23, 42, 0.98);
}

.table thead th {
    border-bottom-color: rgba(148, 163, 184, 0.5);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(15, 23, 42, 0.9);
}

/* ===========================
   BOTONES
   =========================== */

.btn-primary {
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border: none;
    font-weight: 600;
    color: #022c22;
    box-shadow: 0 12px 25px rgba(22, 163, 74, 0.55);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    box-shadow: 0 16px 35px rgba(22, 163, 74, 0.8);
}

.btn-outline-secondary,
.btn-outline-light {
    border-radius: 999px;
    border-width: 1px;
}

/* ===========================
   INPUTS & FORMULARIOS
   =========================== */

.form-control,
.form-select {
    border-radius: 0.7rem;
    background-color: rgba(15, 23, 42, 0.98);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.75);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.85);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue-soft);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.9);
    background-color: rgba(15, 23, 42, 1);
    color: var(--text-main);
}

/* Checkboxes */
.form-check-input {
    background-color: #020617;
    border-color: rgba(148, 163, 184, 0.9);
}

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue-soft);
}

/* ===========================
   BARRA HORARIO / DISPONIBILIDAD
   =========================== */

.availability-bar {
    border-radius: 1rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.2rem;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(96, 165, 250, 0.85);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 1);
    border: 1px solid rgba(148, 163, 184, 0.75);
}

.availability-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.95);
}

.availability-dot.offline {
    background: #f97316;
    box-shadow: 0 0 10px rgba(248, 113, 22, 0.95);
}

#liveClock {
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ===========================
   BADGES DE ESTADO
   =========================== */

.badge-status {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.badge-status[data-status="pendiente"] {
    background: rgba(249, 115, 22, 0.18);
    color: #fed7aa;
}

.badge-status[data-status="en_proceso"] {
    background: rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
}

.badge-status[data-status="listo"] {
    background: rgba(34, 197, 94, 0.22);
    color: #bbf7d0;
}

.badge-status[data-status="rechazado"] {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}

.badge-status[data-status="cerrado"] {
    background: rgba(148, 163, 184, 0.22);
    color: #e5e7eb;
}

/* ===========================
   LINKS
   =========================== */

a {
    color: #e5e7eb;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===========================
   ALERTAS (DARK THEME)
   =========================== */

.alert-dark-themed {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.75);
    color: var(--text-main);
}

/* ===========================
   LOGIN PAGE – SE MANTIENE PERO INDEPENDIENTE
   =========================== */

.login-body {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #22c55e 0, transparent 55%),
                radial-gradient(circle at 80% 0%, #0ea5e9 0, transparent 55%),
                radial-gradient(circle at 0% 100%, #6366f1 0, transparent 55%),
                #020617;
    overflow: hidden;
    color: var(--text-main);
}

.login-bg {
    position: fixed;
    inset: -10%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.login-gradient {
    position: absolute;
    inset: -30%;
    background:
        conic-gradient(from 180deg,
            rgba(34, 197, 94, 0.1),
            rgba(59, 130, 246, 0.35),
            rgba(14, 165, 233, 0.35),
            rgba(56, 189, 248, 0.15),
            rgba(34, 197, 94, 0.1));
    animation: spin-slow 50s linear infinite;
    opacity: 0.9;
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.login-orbit {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.6), transparent 60%);
    filter: blur(3px);
    opacity: 0.28;
    mix-blend-mode: screen;
}

.login-orbit-1 {
    width: 420px;
    height: 420px;
    top: 8%;
    left: -5%;
    animation: float-orbit-1 24s ease-in-out infinite alternate;
}

.login-orbit-2 {
    width: 380px;
    height: 380px;
    bottom: -5%;
    right: -5%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.6), transparent 60%);
    animation: float-orbit-2 28s ease-in-out infinite alternate;
}

@keyframes float-orbit-1 {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(40px, 60px, 0); }
}

@keyframes float-orbit-2 {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-60px, -40px, 0); }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-side {
    max-width: 460px;
    margin-right: 2.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.5);
    font-size: 0.8rem;
    color: #bbf7d0;
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 1),
        0 0 0 1px rgba(15, 23, 42, 0.95);
}

.login-card-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login-logo {
    height: 54px;
    margin-bottom: 0.5rem;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.login-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.login-chip {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: var(--text-muted);
}

.login-alert {
    font-size: 0.85rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 992px) {
    .app-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 1rem;
    }
    .sidebar-inner {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .sidebar-nav {
        flex: 1;
        display: flex;
        gap: 1rem;
        overflow-x: auto;
    }
    .sidebar-menu {
        display: flex;
        gap: 0.3rem;
    }
    .sidebar-footer {
        margin-left: 1rem;
    }
    .app-main {
        padding: 1rem;
    }

    .login-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .login-side {
        margin-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .availability-bar {
        border-radius: 1rem;
    }
}

/* =========================================
   LOGIN MUCHO MÁS LLAMATIVO · SGtuners
   ========================================= */

.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto !important;      /* scroll en móvil */
    -webkit-overflow-scrolling: touch;
    background: #02030a;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* FONDO GENERAL */
.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Gradiente animado */
.login-bg-gradient {
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 180deg,
        #00ffc3,
        #00b4ff,
        #4b6cff,
        #ff00ff,
        #ff7b00,
        #00ffc3
    );
    opacity: 0.25;
    filter: blur(60px);
    animation: login-bg-rotate 35s linear infinite;
}

@keyframes login-bg-rotate {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

/* Órbitas */
.login-bg-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 200, 0.25);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
    opacity: 0.45;
}

.login-bg-orbit-1 {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -160px;
    animation: login-orbit-1 40s linear infinite;
}

.login-bg-orbit-2 {
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: -120px;
    border-color: rgba(0, 180, 255, 0.35);
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.4);
    animation: login-orbit-2 50s linear infinite;
}

@keyframes login-orbit-1 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes login-orbit-2 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Línea de scan */
.login-bg-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 255, 190, 0.12) 40%,
        rgba(0, 255, 190, 0) 100%
    );
    opacity: 0.65;
    animation: login-scanline 5.5s linear infinite;
}

@keyframes login-scanline {
    0%   { transform: translateY(-150%); }
    100% { transform: translateY(200%); }
}

/* LAYOUT PRINCIPAL */
.login-main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
}

/* COLUMNA IZQUIERDA (INFO DE MARCA) */
.login-side {
    flex: 1.1;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #e8f0ff;
}

.login-side-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 203, 0.7);
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dffef8;
}

.login-side-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #00ffc3;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.9);
}

/* Título principal */
.login-side-title {
    font-family: 'Orbitron', system-ui, sans-serif;
    font-weight: 600;
    font-size: 2.3rem;
    line-height: 1.18;
    margin: 0;
    color: #ffffff;
    text-shadow:
        0 0 18px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(0, 255, 195, 0.35);
}

.login-side-title span {
    color: #00ffc3;
}

/* Texto descriptivo */
.login-side-text {
    margin: 4px 0 8px;
    font-size: 0.98rem;
    max-width: 460px;
    color: rgba(214, 225, 255, 0.88);
}

/* Bullets destacados */
.login-highlight-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.login-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(60, 110, 170, 0.55);
    max-width: 420px;
}

.login-highlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #00ffc3;
    box-shadow:
        0 0 10px rgba(0, 255, 195, 0.8),
        0 0 18px rgba(0, 255, 195, 0.6);
}

.login-highlight-text {
    font-size: 0.86rem;
    color: rgba(225, 234, 255, 0.9);
}

.login-side-footnote {
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(190, 204, 240, 0.85);
}

/* COLUMNA DERECHA (CARD DE LOGIN) */
.login-card-wrapper {
    flex: 0.9;
    max-width: 420px;
    position: relative;
}

/* Halo alrededor */
.login-card-glow {
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle at top, rgba(0, 255, 195, 0.22), transparent 60%);
    filter: blur(12px);
    opacity: 0.9;
    pointer-events: none;
}

/* Tarjeta */
.login-card {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(0, 255, 163, 0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(0, 180, 255, 0.16), transparent 55%),
        rgba(4, 8, 20, 0.96);
    border-radius: 18px;
    padding: 26px 22px 20px;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 145, 210, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Borde neón animado */
.login-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(0, 255, 195, 0.9),
        rgba(0, 180, 255, 0.95),
        rgba(140, 90, 255, 0.9),
        rgba(0, 255, 195, 0.9));
    opacity: 0.12;
    z-index: -1;
    filter: blur(4px);
    animation: login-neon-border 6s linear infinite;
}

@keyframes login-neon-border {
    0%   { opacity: 0.12; }
    50%  { opacity: 0.3; }
    100% { opacity: 0.12; }
}

/* CABECERA DE TARJETA */
.login-card-header {
    text-align: center;
    margin-bottom: 14px;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.login-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.8));
}

.login-title {
    font-family: 'Orbitron', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 4px 0 4px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

.login-subtitle {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(210, 224, 250, 0.88);
}

/* MENSAJES */
.login-flash-container {
    margin-bottom: 10px;
}

.login-flash {
    font-size: 0.84rem;
    padding: 7px 9px;
    border-radius: 9px;
    margin-bottom: 5px;
}

.login-flash-success {
    background: rgba(0, 200, 120, 0.13);
    border: 1px solid rgba(0, 255, 160, 0.7);
    color: #caffa9;
}

.login-flash-danger,
.login-flash-error {
    background: rgba(255, 70, 90, 0.14);
    border: 1px solid rgba(255, 120, 130, 0.8);
    color: #ffd5db;
}

/* FORMULARIO */
.login-form {
    margin-top: 8px;
}

.login-field {
    margin-bottom: 14px;
}

.login-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(205, 220, 250, 0.9);
}

/* Input con icono */
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 10px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 255, 195, 0.75);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 10px 11px 10px 32px;
    border-radius: 9px;
    border: 1px solid rgba(145, 165, 210, 0.65);
    background: rgba(3, 6, 15, 0.96);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.17s ease, box-shadow 0.17s ease, background 0.17s ease;
}

.login-input::placeholder {
    color: rgba(170, 185, 220, 0.75);
}

.login-input:focus {
    border-color: rgba(0, 215, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(0, 215, 255, 0.45),
        0 0 18px rgba(0, 160, 255, 0.5);
    background: rgba(5, 10, 24, 0.98);
}

/* BOTÓN */
.login-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #00ffa3, #00c6ff);
    color: #02050b;
    font-weight: 600;
    font-size: 0.96rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 14px 32px rgba(0, 255, 163, 0.35),
        0 0 24px rgba(0, 198, 255, 0.5);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.7), transparent 55%);
    opacity: 0.25;
    mix-blend-mode: screen;
    transform: translateX(-120%);
    animation: login-btn-swipe 4s ease-in-out infinite;
}

@keyframes login-btn-swipe {
    0%   { transform: translateX(-120%); opacity: 0; }
    25%  { transform: translateX(20%); opacity: 0.4; }
    50%  { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(120%); opacity: 0; }
}

.login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow:
        0 6px 18px rgba(0, 255, 163, 0.25),
        0 0 18px rgba(0, 198, 255, 0.4);
}

/* FOOTER */
.login-footer {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(110, 130, 190, 0.65);
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.76rem;
    color: rgba(210, 222, 252, 0.88);
}

.login-footer-chip {
    align-self: center;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 203, 0.75);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(210, 255, 250, 0.95);
}

.login-footer-text {
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-main-wrapper {
        flex-direction: column;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .login-side {
        text-align: center;
        align-items: center;
    }

    .login-side-text,
    .login-highlight,
    .login-side-footnote {
        text-align: center;
    }

    .login-highlight {
        align-self: center;
    }

    .login-card-wrapper {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .login-main-wrapper {
        padding: 26px 14px 30px;
    }

    .login-side-title {
        font-size: 1.7rem;
    }

    .login-card {
        padding: 22px 16px 18px;
    }
}
