/* ==========================================================================
   assets/css/auth.css - TURISTABLE AUTH PREMIUM
   Estilos para Login y Registro
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Montserrat', sans-serif;
    color: #303030;
    min-height: 100vh; /* CORRECCIÓN: Permite que el fondo crezca si es necesario */
    width: 100vw;
    overflow-x: hidden; /* CORRECCIÓN: Eliminado el 'overflow: hidden' global que impedía el scroll vertical */
    background-color: #FFFFFF;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- LADO IZQUIERDO: FORMULARIO --- */
.auth-form-panel {
    width: 40%;
    min-height: 100vh;
    padding: 4vh 5vw; /* Reducido para maximizar el espacio en pantallas pequeñas */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: #FFFFFF;
    z-index: 2;
    box-shadow: 10px 0 30px rgba(0,0,0,0.02);
}

.auth-logo {
    position: absolute;
    top: 4vh;
    left: 5vw;
    height: 35px;
}

.auth-header {
    margin-bottom: 3vh;
    margin-top: 4vh; /* Margen superior para no pisar el logo */
}

.auth-header h1 {
    font-size: clamp(24px, 3.5vh, 32px);
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: #888;
    font-size: 13px;
}

/* --- ESTILOS DE FORMULARIO COMPACTADOS --- */
.form-group {
    margin-bottom: 1.8vh; /* CORRECCIÓN: Reducido para que todo quepa en una pantalla */
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #666;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px; /* CORRECCIÓN: Inputs más estilizados y compactos */
    border: 1.5px solid #F0F0F0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background-color: #F9FAFB;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #303030;
    background-color: #FFFFFF;
}

.btn-auth {
    width: 100%;
    padding: 15px;
    background-color: #303030;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    margin-top: 1.5vh;
}

.btn-auth:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* --- ALERTAS --- */
.alert {
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2vh;
}

.alert-error { background-color: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.alert-success { background-color: #D1FAE5; color: #059669; border: 1px solid #A7F3D0; }

/* --- FOOTER REDISEÑADO (Alineado a la Izquierda) --- */
.auth-footer {
    margin-top: 3vh;
    font-size: 13px;
    color: #666;
    display: flex;
    flex-direction: column; /* Apila los elementos uno debajo del otro */
    align-items: flex-start; /* Alinea todo a la izquierda */
    gap: 12px; /* Espaciado uniforme entre los enlaces */
}

.auth-footer span {
    display: flex;
    align-items: center;
    gap: 4px; /* Mantiene la frase y el enlace siempre juntos */
}

.auth-footer a {
    color: #303030;
    font-weight: 700;
    text-decoration: none;
    border-bottom: none; /* CORRECCIÓN: Línea eliminada */
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #000000;
}

/* --- LADO DERECHO: IMAGEN --- */
.auth-image-panel {
    width: 60%;
    height: auto;
    min-height: 100vh;
    background-image: url('../img/fondo-landing-escritorio.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(48,48,48,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .auth-form-panel { width: 100%; padding: 8vh 8vw; }
    .auth-image-panel { display: none; }
}

.hidden { display: none; }