/* Importación de fuente Outfit (dinámica, geométrica y legible) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta de colores solicitada */
    --bg-oscuro: #1E1E1E; /* Gris bien oscuro puro */
    --panel-claro: #EDF2F4;
    --rojo-carmesi: #D90429;
    --texto-principal: #1E1E1E;
    --texto-inverso: #FFFFFF;
    
    /* Variables de UI (Plano / Sólido) */
    --glass-bg: #292929; /* Fondo sólido gris para paneles */
    --glass-border: rgba(255, 255, 255, 0.1); /* Borde sutil */
    --glass-shadow: none; /* Sin sombras */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-oscuro);
    color: var(--texto-inverso);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Efectos de luces espaciales de fondo eliminados por solicitud del usuario */

/* Tarjeta Spatial UI - Mobile First */
.spatial-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; /* Ocupar toda la pantalla en móvil */
}

/* Tablets y Desktop */
@media (min-width: 576px) {
    .spatial-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 4px; /* Curvas más pequeñas */
        padding: 2.5rem 2rem;
        box-shadow: none;
        max-width: 380px;
        min-height: auto; /* Quitar el 100vh en desktop */
        margin: auto; /* Asegurar centrado si es necesario */
    }
}

/* Títulos y textos */
.spatial-card h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.spatial-card h1 span {
    color: var(--rojo-carmesi);
}

.spatial-card p.subtitle {
    color: var(--panel-claro);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Formularios */
.form-group {
    margin-bottom: 1.2rem;
    position: relative; /* Agregado para posicionar el ojito de contraseña */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--panel-claro);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 4px; /* Curvas más pequeñas */
    color: var(--texto-principal);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: var(--rojo-carmesi);
    background: rgba(255, 255, 255, 1);
    box-shadow: none; /* Sombras/luces eliminadas */
}

/* Botones */
.btn-primary {
    width: 100%;
    padding: 0.65rem;
    background-color: var(--rojo-carmesi);
    color: var(--texto-inverso);
    border: none;
    border-radius: 4px; /* Curvas más pequeñas */
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background-color: #ff1a3d;
    box-shadow: none; /* Sombras eliminadas */
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Botón de ver contraseña */
.toggle-password {
    background: none;
    border: none;
    color: var(--rojo-carmesi);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-size: 1.1rem; /* Hacer el ícono un poco más grande */
}

.toggle-password:hover {
    color: #ff1a3d;
}

.toggle-password:focus {
    outline: none;
}

/* Alertas */
.alert {
    padding: 0.8rem;
    border-radius: 4px; /* Curvas más pequeñas */
    margin-bottom: 1.2rem;
    background: rgba(217, 4, 41, 0.2);
    border: 1px solid rgba(217, 4, 41, 0.5);
    color: #ffccd2;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}
