/* --- ESTILOS PARA LOGIN Y REGISTRO (TODOMOTOS) --- */

:root {
    --rojo-pulsar: #d32f2f;
    --oscuro-fondo: #121212;
    --gris-tarjeta: #1e1e1e;
    --gris-borde: #333333;
    --blanco: #ffffff;
    --texto-gris: #b0b0b0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Exo 2', sans-serif;
    background-color: var(--oscuro-fondo);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Evita rebote lateral en móviles */
}

/* Contenedor principal responsivo */
.contenedor-autenticacion {
    background: var(--gris-tarjeta);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    padding: 30px;
    width: 90%; /* Ocupa el 90% en móviles */
    max-width: 400px; /* No crece más de 400px en PC */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    box-sizing: border-box; /* Incluye padding en el ancho total */
    margin: 20px;
}

.titulo-formulario {
    color: var(--rojo-pulsar);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    font-size: 1.8rem;
}

/* Grupos de entrada */
.grupo-entrada {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.grupo-entrada label {
    margin-bottom: 8px;
    color: var(--texto-gris);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Inputs corregidos para que no se desborden */
.campo-texto {
    width: 100%;
    padding: 12px;
    background: #121212;
    border: 1px solid var(--gris-borde);
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Clave para el ajuste móvil */
    outline: none;
    transition: border-color 0.3s;
}

.campo-texto:focus {
    border-color: var(--rojo-pulsar);
}

/* Botón con estilo Bajaj */
.boton-enviar {
    background: var(--rojo-pulsar);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.boton-enviar:hover {
    background: #b02626;
    transform: translateY(-2px);
}

/* Pie del formulario */
.pie-formulario {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--texto-gris);
}

.enlace-secundario {
    color: var(--rojo-pulsar);
    text-decoration: none;
    font-weight: bold;
}

/* AJUSTES EXTRA PARA PANTALLAS MUY PEQUEÑAS */
@media screen and (max-width: 480px) {
    .contenedor-autenticacion {
        padding: 20px;
    }
    .titulo-formulario {
        font-size: 1.5rem;
    }
}