/* ========== CONFIGURACIÓN GLOBAL Y RESETEO ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #f0f2f5;
}

/* Contenedor principal que divide la pantalla en dos paneles */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* ========== PANEL IZQUIERDO (Identidad y Gráficos) ========== */
.login-left {
    width: 45%;
    /* Degradado oscuro corporativo */
    background: linear-gradient(165deg, #0B1A2F 0%, #0F2440 40%, #122B4D 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil con luces radiales */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(59,130,246,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(59,130,246,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-left-content {
    padding: 50px;
    position: relative;
    z-index: 1;
}

/* Estilos del Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}

.logo-bs {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.logo-sep {
    font-size: 28px;
    color: rgba(255,255,255,0.3);
    font-weight: 200;
}

.logo-text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 3px;
    font-weight: 300;
}

/* Textos principales del panel izquierdo */
.login-left h1 {
    font-size: 2.4rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.login-left h1 .highlight {
    color: #C8A960; /* Dorado Family Office */
    font-style: italic;
}

.login-left .subtitle {
    margin-top: 24px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 400;
}

/* Contenedor para el gráfico decorativo inferior */
.login-left-chart {
    position: relative;
    z-index: 1;
    height: 200px;
}

.login-left-chart svg {
    width: 100%;
    height: 100%;
}

/* ========== PANEL DERECHO (Formulario de Acceso) ========== */
.login-right {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px;
}

.login-form {
    width: 100%;
    max-width: 440px;
}

/* Etiquetas de sección */
.area-label {
    display: inline-block;
    background: #E8F0FE;
    color: #1E40AF;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.area-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

/* Selector de área mediante pestañas */
.area-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.area-tab {
    flex: 0 1 calc(50% - 6px);
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #4B5563;
}

/* Ocultamos el radio button real para usar el diseño del label */
.area-tab input[type="radio"] {
    display: none;
}

.area-tab svg {
    flex-shrink: 0;
}

.area-tab span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.area-tab:hover {
    border-color: #93C5FD;
    background: #F8FAFF;
}

/* Estado activo de la pestaña (seleccionado vía JS) */
.area-tab.active {
    background: #0F2440;
    border-color: #0F2440;
    color: #fff;
}

.area-tab.active svg {
    color: #C8A960;
}

/* Mensajes de error */
.error-msg {
    background: #FEF2F2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 3px solid #DC2626;
}

/* Grupos de Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: #1F2937;
    background: #F9FAFB;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    background: #fff;
}

.form-group input::placeholder {
    color: #9CA3AF;
}

/* Opciones adicionales: Recordarme y Olvido */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3B82F6;
}

.forgot {
    font-size: 13px;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
}

.forgot:hover {
    text-decoration: underline;
}

/* Botón de Acceso */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

.btn-login:active {
    transform: translateY(0);
}

/* Cuadro de aviso de seguridad inferior */
.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.security-notice > svg:first-child {
    flex-shrink: 0;
    color: #9CA3AF;
}

.security-notice div {
    flex: 1;
}

.security-notice strong {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 2px;
}

.security-notice span {
    font-size: 11px;
    color: #9CA3AF;
}

.security-notice .shield {
    flex-shrink: 0;
}

/* ========== ADAPTACIÓN MÓVIL (RESPONSIVE) ========== */
@media (max-width: 900px) {
    /* Cambiamos la disposición a vertical */
    .login-container {
        flex-direction: column;
    }
    .login-left {
        width: 100%;
        min-height: 280px;
    }
    .login-right {
        width: 100%;
    }
    .login-left h1 {
        font-size: 1.6rem;
    }
}
