/* =========================================
   LOGIN - Mi Jornada
   Diseño profesional y elegante
   ========================================= */

.che-login-page {
    min-height: 100vh;
    background: url('../images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.che-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(30, 60, 90, 0.75) 0%, rgba(50, 100, 140, 0.7) 100%);
}

.che-login-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.che-login-form {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.5s ease;
}

/* Header del login */
.che-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.che-login-form h2 {
    color: #1a1a2e;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.che-login-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

/* Campos del formulario */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #1e293b;
    box-sizing: border-box;
}

.form-group input:focus,
.form-control:focus {
    border-color: #0ea5e9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* Botón de acceso */
.che-login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #0ea5e9;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.che-login-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.che-login-btn:active {
    transform: translateY(0);
    background: #0369a1;
}

/* Mensajes */
.che-login-message {
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.che-login-message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.che-login-message.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Enlaces */
.text-muted {
    color: #64748b !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.text-muted:hover {
    color: #0ea5e9 !important;
}

.mt-3 {
    margin-top: 1.25rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Toggle password */
#togglePassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#togglePassword:hover {
    color: #475569;
}

#togglePassword svg {
    width: 20px;
    height: 20px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .che-login-container {
        padding: 16px;
    }

    .che-login-form {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .che-login-logo .logo-icon {
        width: 56px;
        height: 56px;
    }
    
    .che-login-logo .logo-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .che-login-form h2 {
        font-size: 1.35rem;
    }
}

/* Formulario de reset */
#che-reset-form .che-login-logo {
    margin-bottom: 1.5rem;
}
