@charset "UTF-8";
/* ==========================================================================
   Estilos Modernos para el Login (Split Screen)
   ========================================================================== */

.login-modern-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f7f6;
    overflow: hidden; /* Previene scroll si no es necesario */
}

.login-split-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* --- Lado de la Imagen --- */
.login-image-section {
    flex: 6; /* Ocupa el 60% de la pantalla */
    /* Imagen de stock médica (doctores/tecnología). Puedes cambiar la URL por una imagen local si prefieres */
    background: url('../../assets/images/bg-12.jpg?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay {
    /* Capa de color semitransparente con los tonos verdes de PROMED */
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8) 0%, rgba(27, 94, 32, 0.9) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
}

.login-overlay-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.login-overlay-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- Lado del Formulario --- */
.login-form-section {
    flex: 4; /* Ocupa el 40% de la pantalla */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
    min-width: 450px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 2rem;
}

.login-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-subtitle {
    color: #777;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* --- Inputs --- */
.input-group-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-modern {
    width: 100%;
    padding: 14px 15px 14px 50px; /* Espacio extra a la izquierda para el ícono */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-modern:focus {
    border-color: #4caf50;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.input-modern:focus + .input-icon,
.input-group-modern:focus-within .input-icon {
    color: #4caf50;
}

/* --- Botón --- */
.btn-login-modern {
    width: 100%;
    padding: 14px;
    background-color: #388e3c; /* Verde médico */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(56, 142, 60, 0.2);
}

.btn-login-modern:hover {
    background-color: #2e7d32;
}

.btn-login-modern:active {
    transform: translateY(2px);
}

/* --- Footer del Login --- */
.login-footer {
    margin-top: 3rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.security-badge {
    margin-top: 10px;
    color: #388e3c;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f5e9;
    padding: 5px 12px;
    border-radius: 20px;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .login-image-section {
        flex: 5;
    }
    .login-form-section {
        flex: 5;
        min-width: 400px;
    }
}

@media (max-width: 768px) {
    .login-split-container {
        flex-direction: column;
    }
    .login-image-section {
        display: none; /* Ocultar imagen en móviles para dar prioridad al login */
    }
    .login-form-section {
        flex: 1;
        width: 100%;
        min-width: 100%;
    }
    .login-modern-body {
        overflow: auto;
    }
}