﻿/* --- VARIABLES DE DISEÑO (Sistema E-Sumicomp) --- */
:root {
    /* Color Estructural (Mantenemos el azul para fondos y paneles informativos) */
    --brand-blue: #0026a7;
    --brand-blue-gradient: linear-gradient(135deg, #0026a7 0%, #0026a7 100%);
    /* 🔥 COLOR DE ACENTO (Solicitado) */
    --accent-orange: #ff8727;
    --accent-orange-hover: #ff8727;
    /* Neutros */
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --bg-app: #f5f5f7;
    --card-white: #ffffff;
    /* Formas */
    --radius-xl: 24px;
    --radius-md: 12px;
    --shadow-card: 0 20px 40px rgba(0,0,0,0.08);
}

/* --- WRAPPER GENERAL (Para Login y Registro) --- */
.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-app);
    padding: 40px 20px;
}

/* --- TARJETA DIVIDIDA (SPLIT CARD) --- */
.auth-card {
    display: flex;
    width: 100%;
    max-width: 1000px; /* Ancho cómodo para formularios largos */
    background: var(--card-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    min-height: 650px;
}

/* Lado Blanco (Formulario) */
.auth-left {
    flex: 1.4; /* Más espacio para los inputs */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Lado Azul (Banner) */
.auth-right {
    flex: 0.8;
    background: var(--brand-blue-gradient);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    position: relative;
}

    /* Decoración Sutil en el lado azul */
    .auth-right::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

    .auth-right::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

/* --- LOGO --- */
.brand-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* --- TYPOGRAPHY --- */
.auth-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* --- INPUTS & ICONS (Estilo Tech) --- */
.input-group-text {
    background-color: #fafafa;
    border: 1px solid #e1e1e1;
    border-right: none;
    color: var(--text-muted);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: all 0.3s ease;
}

.tech-input {
    background-color: #fafafa;
    border: 1px solid #e1e1e1;
    border-left: none;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all 0.3s ease;
}

/* 🔥 FOCO NARANJA (La clave del diseño) */
.input-group:focus-within .input-group-text {
    border-color: var(--accent-orange);
    background-color: #fff;
}

.input-group:focus-within i {
    color: var(--accent-orange); /* El icono se pinta naranja */
}

.tech-input:focus {
    background-color: #fff;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1); /* Resplandor Naranja Suave */
    outline: none;
}

/* --- BOTONES --- */
/* Botón Principal (Naranja) */
.btn-orange-action {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.2);
}

    .btn-orange-action:hover {
        background-color: var(--accent-orange-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 102, 0, 0.3);
        color: white;
    }

/* Botón Secundario (Outline Blanco para fondo azul) */
.btn-outline-white {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 20px;
    display: inline-block;
}

    .btn-outline-white:hover {
        background: white;
        color: var(--brand-blue);
        transform: scale(1.05);
    }

/* --- ADAPTACIONES PARA PERFIL (Dashboard) --- */
.profile-card {
    background: var(--card-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 576px) {

    .auth-wrapper {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .auth-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 20px;
    }
    .auth-right {
        display: none;
    }
    .auth-left {
        padding: 1.5rem 1.2rem;
        justify-content: flex-start;
    }
    .auth-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .auth-subtitle {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .tech-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .input-group-text {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .btn-orange-action {
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    .form-check-label {
        font-size: 0.85rem;
    }
}

/* Estilo para que el select combine con tus tech-inputs */
.form-select.tech-input {
    border-radius: 0 12px 12px 0;
    border: 1px solid #e1e1e1;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

    .form-select.tech-input:focus {
        border-color: var(--accent-orange);
        box-shadow: none;
        background-color: #fff;
    }

/* Color personalizado para el switch cuando está activo */
.custom-switch:checked {
    background-color: #ff8c00; /* Color naranja de Sumicomp */
    border-color: #ff8c00;
}

.custom-switch {
    cursor: pointer;
    width: 2.5em;
    height: 1.25em;
}

