﻿/*
 * Login - Portal Técnicos
 * Estilo Split Screen con tema oscuro
 */

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.login-page {
    display: flex;
    height: 100vh;
    width: 100%;
    background: #fff;
    align-items: stretch;
    /* Estirar hijos para ocupar toda la altura */
}

/* Panel Izquierdo - Branding */
.login-left {
    flex: 6;
    /* 60% del ancho */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    /* Tema oscuro profundo */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo (círculos difusos) */
.login-left::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(111, 66, 193, 0.15);
    /* Púrpura tenue */
    border-radius: 50%;
    filter: blur(80px);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(0, 123, 255, 0.1);
    /* Azul tenue */
    border-radius: 50%;
    filter: blur(60px);
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.brand-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo i {
    color: #6f42c1;
    /* Color acento para el icono */
}

.brand-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.brand-title b {
    font-weight: 700;
    display: block;
}

.brand-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 80%;
}

/* Panel Derecho - Formulario */
.login-right {
    flex: 4;
    /* 40% del ancho */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 2.5rem;
    text-align: center;
    /* Center header text */
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

/* Estilos del Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    height: 50px;
    /* Fixed height */
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px !important;
    /* Redondeado suave */
    border: 1px solid #e1e1e1;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    width: 100%;
    /* Ensure full width */
}

.form-control:focus {
    background-color: #fff;
    border-color: #6f42c1;
    box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.1);
}

.input-group-text {
    background: transparent;
    border: none;
    display: none;
    /* Ocultamos iconos del input group original si no encajan bien, o los ajustamos */
}

/* Ajuste para input groups si queremos mantener iconos */
.input-group {
    position: relative;
}

/* Botón primario */
.btn-primary {
    height: 50px;
    /* Fixed height matching inputs */
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    /* Force white text */
    border-radius: 8px;
    background: linear-gradient(90deg, #6f42c1 0%, #5a32a3 100%);
    border: none;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    background: linear-gradient(90deg, #7a4bd1 0%, #653bb0 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Checkbox y Links */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrap input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: #6f42c1;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.switch-portal {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.switch-portal a {
    color: #6f42c1;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

/* Alert */
.alert-danger {
    border-radius: 8px;
    background-color: #ffeef0;
    color: #dc3545;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .login-left {
        display: none;
        /* Ocultar panel decorativo en tablets/móviles */
    }

    .login-right {
        flex: 1;
        padding: 2rem;
    }

    .login-form-container {
        max-width: 100%;
    }
}