﻿/* Configuración General y Manrope */
body.auth-body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
}

.fw-800 {
    font-weight: 800;
}

.fw-700 {
    font-weight: 700;
}

.fw-600 {
    font-weight: 600;
}

.fw-300 {
    font-weight: 300;
}

.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- PANEL IZQUIERDO (40%) --- */
.auth-side-info {
    flex: 0 0 60%;
    /*position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;*/
}

.auth-side-info {
    background: linear-gradient(160deg, var(--se-primary) 50%, var(--se-primary-dark) 80%);
    /*padding: 3rem 4rem 0;
    position: relative;
    align-items: stretch;*/ /* la regla original de .auth-side-info trae align-items:center;
        sin este override los hijos (logo/features/ola) se encogerían a su ancho de contenido
        en vez de ocupar todo el ancho del panel */
    /*justify-content: flex-start;*/
}

.auth-side-logo {
    position: relative;
    z-index: 2;
}

.auth-logo-img {
    max-width: 15rem;
    width: 100%;
    /*filter: brightness(0) invert(1);*/
}

.auth-side-features {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.auth-feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.auth-side-wave {
    position: relative;
    margin: 0 -4rem;
    line-height: 0;
}

.auth-wave-svg {
    width: 100%;
    height: 9rem;
    display: block;
}

    .auth-wave-svg path {
        fill: var(--se-primary-dark);
    }

.auth-wave-text {
    position: absolute;
    left: 4rem;
    bottom: 1.75rem;
    z-index: 2;
    color: #fff;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
    margin: 0;
}

/* --- PANEL DERECHO (50%) --- */
.auth-side-form {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.auth-side-form {
    background-color: var(--se-body-bg-color);
}

.auth-card-logo {
    max-width: 11rem;
    width: 100%;
}

.auth-form-container {
    width: 100%;
    max-width: 40rem; /* Tamaño optimizado del formulario */
    position: relative;
    z-index: 5;
}

    .auth-form-container .login-box {
        width: 35rem;
    }

/*-----------------------------*/
/* Estilo de los Campos de Entrada */
.auth-side-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-side-form label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.2s;
}

.auth-side-form .form-control {
    border-radius: 999px; /* Redondeado moderno */
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #1a202c;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* Estado de Enfoque (Focus) */
    .auth-side-form .form-control:focus {
        background-color: #ffffff;
        border-color: var(--se-primary);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--se-primary) 10%, transparent); /* Resplandor sutil del color primario */
        outline: none;
    }

/* Iconos dentro de los inputs (opcional) */
.input-group-text {
    background-color: transparent;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 999px 0 0 999px;
    color: #94a3b8;
}

.input-group .form-control {
    border-left: none;
}

/* --- COMPONENTES DE FORMULARIO --- */
.auth-side-form .form-control {
    border-radius: 999px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

    .auth-side-form .form-control:focus {
        border-color: var(--se-primary);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--se-primary) 10%, transparent);
    }

.btn-auth {
    background-color: var(--se-primary);
    color: white;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

    .btn-auth:hover {
        background-color: var(--se-primary-dark);
		color: white;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px color-mix(in srgb, var(--se-primary) 25%, transparent);
    }

/* --- LOADER OVERLAY (Ajustado para el nuevo layout) --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* --- RESPONSIVE (Móviles) --- */

@media (max-width: 1440px) {
    .auth-header-side {
        left: 2.5rem;
    }

    .auth-footer-side {
        left: 2.5rem;
        width: 87%;
    }
}

@media (max-width: 991.98px) {
    body.auth-body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .auth-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .auth-side-form {
        flex: 0 0 100%;
        min-height: 100vh;
        padding: 2.5rem 1.5rem;
        background-color: var(--se-light); /* Fondo sutil en móvil */
    }

    .auth-form-container {
        background: white;
        padding: 2.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }

        .auth-form-container .login-box {
            width: 100%;
        }
}

@media (max-width: 425.98px) {
    .auth-side-form {
        padding: 2rem 1rem;
    }

    .auth-form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

/* --- PÁGINAS DE TÉRMINOS DE USO / POLÍTICA DE PRIVACIDAD --- */
.legal-body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--se-body-bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 1rem;
}

.legal-container {
    width: 100%;
    max-width: 45rem;
    margin: 0 auto;
}

.legal-logo {
    max-width: 10rem;
    width: 100%;
}

.legal-content h2 {
    color: var(--se-primary-dark);
}
