:root {
    --primary: #10b981; 
    --primary-hover: #059669;
    --bg-dark: #064e3b; 
    --bg-card: rgba(2, 44, 34, 0.7); 
    --text-main: #ecfdf5; 
    --text-muted: #a7f3d0; 
    --accent: #06b6d4; 
    --success: #34d399;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.05em; 
    line-height: 1.6;
}

body {
    background: radial-gradient(circle at top left, #065f46, #022c22, #000);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 10px; /* Margen de seguridad para móviles */
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    text-align: center;
    max-width: 450px;
    width: 100%; /* Ocupa el ancho disponible */
}

.logo-container { margin-bottom: 1.5rem; }
.logo-img {
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.3));
    margin: 0 auto;
    display: block;
}

h1 {
    font-size: 1.8rem; /* Tamaño base más adaptable */
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #6ee7b7, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.btn-primary { background: var(--primary); }
.btn-accent { background: #0891b2; }

/* --- RESPONSIVE QUERIES --- */

@media (max-width: 600px) {
    .glass {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    
    .logo-img { max-width: 110px; }

    /* Ajuste para el Admin y Dashboard */
    .admin-container {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tablas desplazables en móvil */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px; /* Fuerza el scroll horizontal para que no se amontone */
    }
}

.loader {
    width: 35px;
    height: 35px;
    border: 4px solid rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
