/* ======================================= */
/* ESTILO AUTENTIFICADORES
/* Estilos Globales de UX Aesthetic (Toast y Modal) */
/* ======================================= */

/* Paleta de colores unificada con GUIDE_STYLES.CSS */
:root {
    /* Paleta de colores de "Colores mi guardarropa.JPG" */
    --color-timberwolf: #D0C5BF; 
    --color-khaki: #C5AC98;     
    --color-isabelline: #FAF5F2; 
    --color-cinereous: #8B7C71; 
    --color-snow: #FBF4F2;      

    /* Variables funcionales */
    --bg: var(--color-snow);            
    --card: var(--color-isabelline);    
    --text: var(--color-cinereous);     
    --accent: var(--color-khaki);       
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.04), 0 2px 5px rgba(0, 0, 0, 0.02);
    --radius: 18px; 
    
    /* Variables de Tipografía unificadas */
 	--font-heading: 'DM Serif Display', serif;
 	--font-body: 'Montserrat', 'Poppins', 'Inter', "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 1. Fondo Global (Asegura el centrado de la caja) */
.auth-bg {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    position: relative; 
    min-height: 100vh;
    margin: 0;
    
    /* PROPIEDADES CRÍTICAS PARA EL CENTRADO DE LA CAJA: */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    
    /* Fallback de fondo */
    background: center/cover no-repeat url('Img/fashion-bg.jpg'); 
}

/* 2. Overlay: Filtro oscuro (Opacidad reducida para que el vídeo se vea mejor) */
.auth-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40); /* Opacidad ajustada */
    z-index: 0;
}

/* 3. Estilo para el Vídeo de Fondo (Cubre TODA la pantalla) */
.video-fondo {
    position: fixed; 
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3; 
    filter: brightness(.55) contrast(1) saturate(.9); 
}


/* 4. Cuadro de Diálogo (Estilo de tarjeta centrada) */
.auth-container {
    background: var(--card); 
    color: var(--text);
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    max-width: 380px; 
    width: 90%; 
    text-align: center; 
    position: relative; 
    z-index: 10; 
}

/* --- Estilos de Formulario, Botones y Texto --- */

.auth-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.form-sub {
    color: #6b7280; 
    margin-bottom: 20px;
}
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #eee; 
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--bg);
    color: var(--text);
}
button[type="submit"] {
    width: 100%; 
    padding: 12px; 
    background-color: var(--accent); 
    color: var(--btn-text-light); 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}
button[type="submit"]:hover {
    background-color: var(--accent-hover); 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.error { 
    background-color: #f8d7da; 
    color: #721c24; 
    padding: 10px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    border: 1px solid #f5c6cb;
    font-weight: 500;
}
.form-alt a, .form-link a { 
    color: var(--accent); 
    font-weight: 600;
    text-decoration: none;
}
.form-alt a:hover, .form-link a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* 5. Pie de página (Flotando sobre el fondo de vídeo) */
.auth-footer {
    position: absolute; /* CRÍTICO para que aparezca en el fondo */
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7); /* Texto legible sobre el fondo oscuro */
    z-index: 10;
    font-size: 0.85em;
    padding-bottom: 5px;
}