/**
 * TELFLUX SaaS - Estilos de Autenticación
 *
 * @version    1.0.0
 * @author     Gerardo Medina Cardona - gemeca.com.mx
 * @copyright  2026 GEMECA
 *
 * NOTA: Este archivo contiene las definiciones críticas para la interfaz
 * de inicio de sesión y recuperación de contraseña.
 */

:root {
    --tf-dark: #0f172a;
    --tf-accent: #1e293b;
    --tf-bg: #f8fafc;
    --tf-primary: #2563eb;
    --tf-border: #e2e8f0;
    --tf-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--tf-bg);
    color: var(--tf-accent);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ============================================
   CONTENEDOR PRINCIPAL - PANTALLA COMPLETA
   ============================================ */
.login-container {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
}

/* ============================================
   COLUMNA IZQUIERDA: FORMULARIO
   ============================================ */
.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #ffffff;
    position: relative;
}

.login-box {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.login-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

/* ============================================
   INPUTS PERSONALIZADOS
   ============================================ */
.form-control-tf {
    border: 1px solid var(--tf-border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control-tf:focus {
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ============================================
   INPUT DE CONTRASEÑA CON TOGGLE
   ============================================ */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--tf-muted);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--tf-dark);
}

/* ============================================
   BOTÓN DE INICIO DE SESIÓN
   ============================================ */
.btn-tf-login {
    background-color: var(--tf-dark);
    border: 1px solid var(--tf-dark);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-tf-login:hover {
    background-color: #000000;
    border-color: #000000;
}

/* ============================================
   COLUMNA DERECHA: PANEL VISUAL
   ============================================ */
.login-visual-section {
    flex: 1.2;
    background: linear-gradient(135deg, var(--tf-dark) 0%, var(--tf-accent) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.login-visual-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.login-visual-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.visual-content {
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    z-index: 2;
}

.visual-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.visual-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 480px;
}

.visual-footer {
    position: relative;
    z-index: 2;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ============================================
   CHECKBOX Y MENSAJES
   ============================================ */
.form-check-input:checked {
    background-color: var(--tf-dark) !important;
    border-color: var(--tf-dark) !important;
}

.alert-danger {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE: OCULTAR PANEL DERECHO EN MÓVIL
   ============================================ */
@media (max-width: 991.98px) {
    .login-visual-section {
        display: none !important;
    }
    .login-form-section {
        padding: 2rem 1.5rem;
    }
}