@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-profundo:   #0a1628;
    --azul-primario:   #1455a4;
    --azul-brillante:  #2563eb;
    --azul-hover:      #1d4ed8;
    --blanco:          #ffffff;
    --gris-fondo-inputs:#f8fafc;
    --gris-borde-input:#e2e8f0;
    --texto-oscuro:    #334155;
    --texto-mutado:    #64748b;
}

body, html {
    height: 100%;
    font-family: 'Exo 2', sans-serif;
    overflow: hidden;
    background-color: var(--blanco);
}

.login-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ── PANEL IZQUIERDO: Efecto Estación Inmersiva ── */
.login-left-panel {
    position: relative;
    flex: 7; /* Toma el 70% del espacio disponible */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.brand-bg-container img.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.1) contrast(1.05);
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 60, 130, 0.9) 0%, rgba(10, 25, 55, 0.95) 100%);
    z-index: 2;
}

/* Elementos Flotantes */
.panel-floating-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 40px;
    max-width: 520px;
    color: var(--blanco);
    animation: slideUpContent 0.8s ease both;
}

.floating-logo-wrapper {
    /*margin-bottom: 28px;*/
    display: flex;
    justify-content: center;
}

.floating-logo {
    height: auto;
    border-radius: 0.5em;
    /* Efecto de aislamiento flotante limpio */
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35)); 
    animation: floatingEffect 4s ease-in-out infinite;
    max-width: 450px;
}

.system-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.system-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
}

/* ── PANEL DERECHO: Estilo Minimalista Limpio ── */
.login-right-panel {
    flex: 3; /* Toma el 30% restante de forma exacta */
    height: 100%;
    background: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px; /* Reducimos un poco el padding para que respire mejor el diseño en 30% */
    position: relative;
    z-index: 4;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.login-form-container {
    width: 100%;
    max-width: 340px;
}

.login-welcome {
    margin-bottom: 30px;
    text-align: center;
}

/* TABS ESTILO PRINCIPIUM */
.login-tabs-container {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 28px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    outline: none; /* ¡Esto quita el borde negro feo al hacer clic! */
    color: var(--texto-mutado);
    padding: 12px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; /* Transición fluida */
}

.tab-btn:focus, .tab-btn:active {
    outline: none; /* Doble seguridad para cualquier navegador */
    box-shadow: none;
}

.tab-btn.active {
    background: var(--blanco);
    color: var(--azul-primario);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* INPUTS LIMPIOS */
.form-group-custom {
    margin-bottom: 16px;
}

.input-group .form-control {
    background: var(--gris-fondo-inputs) !important;
    border: 1px solid var(--gris-borde-input) !important;
    border-right: none !important;
    color: var(--texto-oscuro) !important;
    font-size: 0.95rem !important;
    height: 48px !important;
    border-radius: 10px 0 0 10px !important;
    transition: all 0.2s ease !important;
}

.input-group .form-control:focus {
    background: var(--blanco) !important;
    border-color: var(--azul-brillante) !important;
    box-shadow: none !important;
}

.input-group-text {
    background: var(--gris-fondo-inputs) !important;
    border: 1px solid var(--gris-borde-input) !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    height: 48px !important;
    width: 48px;
    justify-content: center;
    transition: all 0.2s ease !important;
}

.input-group:focus-within .input-group-text {
    border-color: var(--azul-brillante) !important;
    background: var(--blanco) !important;
}

.input-group-text .fas {
    color: var(--texto-mutado) !important;
    font-size: 0.95rem !important;
}

.input-group:focus-within .input-group-text .fas {
    color: var(--azul-brillante) !important;
}

/* BOTÓN PREMIUM ACCEDER */
.btn-primary.btn-block {
    background: var(--azul-brillante) !important;
    border: none !important;
    border-radius: 10px !important;
    height: 48px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--blanco) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
}

.btn-primary.btn-block:hover {
    background: var(--azul-hover) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}

/* FOOTER */
.loginfooter {
    text-align: center;
    margin-top: 35px;
    color: var(--texto-mutado);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ANIMACIONES */
.d-none { display: none !important; }

.animated-fade {
    animation: fadeInTab 0.35s ease-out both;
}

/* Contenedor principal de la cabecera */
.login-welcome-section {
    text-align: center;
    margin-bottom: 35px; /* Espacio generoso antes de los tabs/inputs */
}

/* "Bienvenido" Grande y Destacado */
.welcome-title {
    font-size: 2.2rem;          /* Tamaño grande y limpio */
    font-weight: 700;           /* Negrita fuerte */
    color: #1e293b;             /* Color oscuro pero suave (Slate 800), menos agresivo que el negro puro */
    letter-spacing: -0.03em;    /* Un toque moderno compactando el tracking */
    margin-bottom: 6px;         /* Separación corta con el texto de abajo */
}

/* "Acceso a la plataforma de gestión" Desaturado */
.login-box-msg {
    color: #64748b;             /* Gris azulado sutil (Slate 500) para quitar saturación */
    font-size: 0.95rem;         /* Tamaño menor para crear contraste jerárquico */
    font-weight: 400;
    margin-bottom: 14px;
}

/* Línea divisoria minimalista (Opcional, si quieres mantenerla) */
.login-divider {
    height: 3px;
    width: 35px;
    background: #1455a4;        /* El azul de tu paleta corporativa */
    border-radius: 2px;
    margin: 0 auto;
}

/* Contenedor de redes en el panel izquierdo */
.left-panel-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px; /* Separa las redes del subtítulo */
}

/* Íconos individuales transparentes */
.social-icon-btn {
    color: #ffffff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08); /* Fondo ultra-transparente */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borde sutil */
    opacity: 0.65; /* Transparencia general inicial */
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Efecto hover suave al pasar el mouse */
.social-icon-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px); /* Pequeño brinco estético */
    color: #ffffff;
}

/* 1. Por defecto en escritorio: Ocultamos el contenedor del logo móvil */
.mobile-logo-container {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-logo {
    max-width: 250px; /* Tamaño controlado para que no sature la pantalla móvil */
    height: auto;
    border-radius: 12px;
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);*/
}

/* 2. En dispositivos móviles (Pantallas menores a 768px u 800px según tu layout) */
@media (max-width: 768px) {
    .mobile-logo-container {
        display: block; /* Se hace visible solo en celulares */
    }
    
    /* Opcional: Ajustamos un poco el margen superior del título si es necesario */
    .login-title {
        margin-top: 10px;
    }
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpContent {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatingEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-left-panel { display: none; }
    .login-right-panel {
        width: 100vw;
        padding: 30px 24px;
    }
}

