/* View/css/estilos.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Contenedor Principal en Bloque de Dos Paneles */
.login-wrapper {
    background: #ffffff;
    display: flex;
    width: 100%;
    max-width: 900px;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Panel Izquierdo (Decorativo e Identidad) */
.brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ffffff;
}

/* Efecto de red abstracta/médica de fondo */
.brand-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.07;
    background-image: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 24px 24px;
}

.brand-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.logo-icon {
    font-size: 60px;
    color: #00d2d3;
    margin-bottom: 20px;
    animation: pulse 3s infinite ease-in-out;
}

.brand-content h1 {
    font-size: 32px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand-content p {
    font-size: 14px;
    color: #b2bec3;
    line-height: 1.5;
}

/* Panel Derecho (El Formulario) */
.form-panel {
    flex: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
}

.form-container {
    width: 100%;
    max-width: 340px;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Caja de Errores Dinámica */
.error-box {
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Inputs con Iconos Integrados */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 13.5px;
    font-weight: 600;
}

.input-wrapper-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #a0aec0;
    font-size: 16px;
    transition: color 0.3s ease;
}

.input-wrapper-inner input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.3s ease;
}

/* Comportamientos del Input */
.input-wrapper-inner input:focus {
    border-color: #2c5364;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 83, 100, 0.1);
}

.input-wrapper-inner input:focus + .input-icon {
    color: #2c5364;
}

/* Eliminar flechas de tipo número */
.input-wrapper-inner input[type=number]::-webkit-inner-spin-button, 
.input-wrapper-inner input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Botón de Envío Corporativo */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0074C8, #0074C8);
    border: none;
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(44, 83, 100, 0.2);
}

.btn-submit:hover {
    background: #000000; /* Cambio a negro sólido al pasar el cursor */
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* Pie del Formulario */
.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer p {
    font-size: 12px;
    color: #a0aec0;
}

.brand-panel {
    position: relative;
    overflow: hidden;
}

.panel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen al contenedor */
    position: absolute;
    top: 0;
    left: 0;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.logo-img {
    display: block;
    margin: 0 auto;      /* Centra horizontalmente */
    width: 200px;        /* Ajusta el ancho */
    max-width: 80%;      /* Responsive */
    height: auto;        /* Mantiene proporción */
}


/* =========================
   DASHBOARD FARMADISA
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:#ffffff;
    padding:20px;
}

.container{
    max-width:1200px;
    margin:auto;
}

.usuario{
    color:#7b7b7b;
    font-weight:bold;
    margin-bottom:10px;
}

.dashboard{
    background:#ffffff;
    min-height:90vh;
}

/* HEADER */

.header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#f2f2f2;
    padding:15px 30px;
}

.logo img{
    width:120px;
    height:auto;
}

.search-box{
    flex:1;
    margin:0 40px;
    position:relative;
}

.search-box input{
    width:100%;
    padding:10px 15px 10px 40px;
    border:none;
    border-radius:5px;
    background:white;
}

.search-box i{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#777;
}

.user-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#1f4a92;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* BIENVENIDA */

.hero{
    display:flex;
    align-items:center;
    padding:40px 60px;
}

.avatar img{
    width:230px;
    height:auto;
}

.info{
    margin-left:20px;
}

.info h1{
    font-size:50px;
    color:#0072ce;
    font-weight:bold;
}

.info h2{
    color:#9cc84b;
    font-weight:normal;
    margin-top:5px;
}

.info p{
    color:#0072ce;
    font-size:30px;
    margin-top:10px;
}

/* PANEL PRINCIPAL */

.content-box{
    background:#efefef;
    margin:20px 40px;
    min-height:250px;
    border-radius:25px;
    display:flex;
    justify-content:center; /* Centra horizontalmente */
    align-items:center;     /* Centra verticalmente */
    padding:25px;
    justify-content:center;
    align-items:center;
}

.menu-lateral{
    width:300px;
    display:flex;
    flex-direction:column;
    align-items:center; /* Centra los botones */
}

.menu-lateral a{
    display:block;
    width:220px; /* Todos los botones del mismo ancho */
    background:#0072ce;
    color:white;
    text-decoration:none;
    text-align:center;
    padding:10px;
    margin-bottom:8px;
    border-radius:8px;
    transition:.3s;
}

.menu-lateral a:hover{
    background:#005eb0;
}

.area-contenido{
    flex:1;
    background:#ffffff;
    border-radius:15px;
    overflow:hidden;
}

/* CURSO */

.curso{
    display:flex;
    align-items:center;
    padding:40px;
}

.curso-icono{
    width:120px;
    height:90px;
    border-radius:50%;
    background:#9cc84b;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:40px;
    color:white;
    margin-right:20px;
}

.curso h3{
    color:#0072ce;
    margin-bottom:5px;
}

.curso p{
    color:#555;
    font-size:12px;
    line-height:1.5;
}

/* BOTON CERRAR SESION */

.logout{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#dc3545;
    color:white;
    text-decoration:none;
    padding:12px 18px;
    border-radius:8px;
    transition:.3s;
}

.logout:hover{
    background:#b52a37;
}

.logout-icon{
    color:white;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
}

.logout-icon:hover{
    opacity:0.8;
}


/* Responsivo (Celulares y Tablets pantallas chicas) */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 400px;
    }
    .brand-panel {
        padding: 30px 20px;
    }
    .logo-icon {
        font-size: 45px;
        margin-bottom: 10px;
    }
    .brand-content h1 {
        font-size: 26px;
    }
    .form-panel {
        padding: 35px 25px;
    }
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}