/* ==========================================
   ESTILOS DE LOGIN (Pantalla Dividida)
   ========================================== */
:root {
    --bg-dark: #0a1423;       /* Fondo azul oscuro del form */
    --color-gold: #bca07d;    /* Dorado Vértice */
    --color-white: #ffffff;
    --btn-blue: #2a35f1;      /* El azul brillante de tu diseño */
    --input-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-white);
    overflow: hidden; /* Evita scroll innecesario en PC */
}

/* --- ESTRUCTURA SPLIT-SCREEN --- */
.login-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- MITAD IZQUIERDA: FORMULARIO --- */


.login-form-container {
    width: 35%; /* Ancho aproximado según tu boceto */
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 2;
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.logo-container img {
    height: 90px;
    margin-bottom: 40px;
}

.form-wrapper h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* --- INPUTS --- */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.input-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.input-group input {
    background-color: transparent;
    border: 1px solid var(--input-border);
    color: var(--color-white);
    padding: 12px 15px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--color-white);
}

/* --- ENLACES PEQUEÑOS --- */
.link-small {
    display: inline-block;
    color: var(--color-white);
    font-size: 0.65rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.link-small:hover {
    color: var(--color-gold);
}

.mt-2 {
    margin-top: 15px;
}

/* --- BOTÓN ENTRAR --- */
.btn-login {
    width: 100%;
    background-color: var(--btn-blue);
    color: var(--color-white);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #1e26d4; /* Azul un poco más oscuro al pasar el mouse */
}

/* --- MITAD DERECHA: IMAGEN --- */
.login-image-container {
    width: 65%;
    position: relative;
    /* Reemplaza con tu imagen de edificios */
    background-image: url('../assets/img/login_img.png'); 
    background-size: cover;
    background-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Un degradado oscuro para que el texto resalte */
    background: linear-gradient(to right, rgba(10, 20, 35, 0.9) 0%, rgba(10, 20, 35, 0.4) 100%);
}

.hero-text {
    position: absolute;
    top: 10%; /* Posicionado arriba como en tu diseño */
    left: 5%;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: -1px;
}

.text-gold {
    color: var(--color-gold);
}

/* --- BOTÓN VOLVER (Flujo normal sin choques) --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-bottom: 40px; /* ⬅️ Esto crea el espacio perfecto con el logo */
}

.btn-back svg {
    transition: transform 0.3s ease;
}

.btn-back:hover {
    color: var(--color-gold);
}

.btn-back:hover svg {
    transform: translateX(-4px); 
}

/* En móvil reducimos un poco el espacio para ahorrar pantalla */
@media (max-width: 992px) {
    .btn-back {
        margin-bottom: 30px;
    }
}

/* --- RESPONSIVIDAD (MÓVILES) --- */
@media (max-width: 992px) {
    .login-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* Ocultamos la imagen de los edificios para priorizar el formulario */
    .login-image-container {
        display: none;
    }

    .login-form-container {
        width: 100%;
        min-width: 100%;
        min-height: 100vh;
        /* ⬅️ CAMBIO CLAVE: Alineamos desde arriba hacia abajo, no al centro */
        justify-content: flex-start; 
        padding: 40px 20px; 
    }

    .form-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }

    .btn-back {
        margin-bottom: 30px;
        /* ⬅️ CAMBIO CLAVE: Fuerza al botón a quedarse a la izquierda sin importar el tamaño de la pantalla */
        align-self: flex-start; 
    }
}