/* assets/css/login.css - Estilos Premium para la Página de Acceso */

:root {
    --login-primary: #2563eb;
    --login-dark: #0f172a;
    --login-text-muted: #64748b;
    --card-radius: 24px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
}

.main-container {
    display: flex;
    min-height: 100vh;
    animation: fadeIn 1s ease-out;
}

/* --- SECCIÓN DEL FORMULARIO --- */
.form-column {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 10;
    box-shadow: 20px 0 50px rgba(0,0,0,0.02);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-box {
    margin-bottom: 2.5rem;
}

.logo-box img {
    max-height: 110px;
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
}

.form-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--login-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.form-header p {
    color: var(--login-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.form-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: var(--card-radius);
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    text-align: left;
}

.form-label {
    font-weight: 600;
    color: var(--login-dark);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 12px !important;
    padding: 0.8rem 1rem !important;
    border: 2px solid #f1f5f9 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: var(--login-primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    background: #ffffff !important;
}

.password-field-group {
    position: relative;
}

.eye-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--login-text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.eye-toggle:hover {
    color: var(--login-primary);
}

.form-check-label {
    font-size: 0.95rem;
    user-select: none;
}

.btn-login {
    background: var(--login-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 1.1rem !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5) !important;
    background: #1d4ed8 !important;
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-password-link {
    display: block;
    text-align: center;
    color: var(--login-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.forgot-password-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-link-box {
    margin-top: 2.5rem;
}

/* --- SECCIÓN HERO --- */
.hero-column {
    flex: 1.2;
    background: #020617;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 500;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1250px) {
    .hero-column { display: none !important; }
    .form-column { 
        max-width: 100% !important; 
        flex: 1 !important;
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    /* Fondo premium exclusivo para móvil */
    body {
        background: radial-gradient(circle at top right, #1e3a8a 0%, #0f172a 50%, #020617 100%) !important;
        background-attachment: fixed !important;
        color: #ffffff !important;
    }
    
    .main-container {
        /* Permite que el contenido esté sobre el fondo */
        background: transparent !important;
    }

    .form-column {
        padding: 2.5rem 1.25rem;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .logo-box img {
        max-height: 85px;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    }
    
    .form-header h1 {
        font-size: 2.1rem;
        color: #ffffff;
        text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }
    
    .form-header p {
        color: #94a3b8;
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    
    /* Glassmorphism en la Tarjeta */
    .form-card {
        padding: 2.25rem 1.75rem;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-radius: 28px !important;
    }
    
    .form-label {
        color: #e2e8f0;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    /* Inputs Dark & Glassy */
    .form-control {
        background: rgba(15, 23, 42, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
        border-radius: 16px !important;
        padding: 1.1rem 1.2rem !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    }
    
    .form-control::placeholder {
        color: #64748b !important;
    }
    
    .form-control:focus {
        background: rgba(15, 23, 42, 0.7) !important;
        border-color: rgba(59, 130, 246, 0.6) !important;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    }
    
    .eye-toggle {
        color: #94a3b8;
    }
    
    .eye-toggle:hover {
        color: #60a5fa;
    }
    
    /* Checkbox Styles */
    .form-check-label {
        color: #cbd5e1 !important;
    }
    
    .form-check-input {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .form-check-input:checked {
        background-color: var(--login-primary) !important;
        border-color: var(--login-primary) !important;
    }
    
    /* Botón Premium */
    .btn-login {
        padding: 1.2rem !important;
        font-size: 1.1rem !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
        box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 800 !important;
        margin-top: 1.5rem !important;
    }
    
    .forgot-password-link {
        color: #60a5fa !important;
        margin-top: 1rem;
    }
    
    .forgot-password-link:hover {
        color: #93c5fd !important;
    }
    
    /* Link inferior con estilo pastilla */
    .footer-link-box {
        margin-top: 2rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 1rem 1.5rem;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .footer-link-box span {
        color: #94a3b8 !important;
    }
    
    .footer-link-box a {
        color: #60a5fa !important;
        text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
