/* ============================================================
   LOGIN — Pantalla de inicio de sesión
============================================================ */

body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #080b14;
    padding: 1.5rem;
}

/* ── Fondo decorativo ── */
.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.login-bg::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    top: -200px; right: -150px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
    border-radius: 50%;
}

.login-bg::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    bottom: -200px; left: -100px;
    background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 65%);
    border-radius: 50%;
}

/* ── Card del login ── */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: rgba(13,18,32,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: loginSlide 0.6s ease forwards;
}

@keyframes loginSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ── */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.login-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.35rem;
}

/* ── Formulario ── */
.login-form .form-group {
    margin-bottom: 1.15rem;
}

.login-form .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
}

.login-form .form-input {
    background: rgba(19,26,44,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    border-radius: 10px;
}

.login-form .form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ── Toggle contraseña ── */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 2.8rem;
}

.password-toggle {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.35);
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: rgba(255,255,255,0.7);
}

.password-toggle .material-symbols-outlined {
    font-size: 1.2rem;
}

/* ── Botón de login ── */
.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5558e6, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Error message ── */
.login-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #fca5a5;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-error .material-symbols-outlined {
    font-size: 1.1rem;
    color: #ef4444;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}
