  /* =================================================================
   ESTILOS ESPECÍFICOS DEL FORMULARIO DE INICIO DE SESIÓN (estilosin.css)
   (VERSIÓN VINO/BORDÓ ELEGANTE CON EFECTO GLASSMORPHISM)
   ================================================================= */

/* --- FUENTES ELEGANTES --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Poppins:wght@300;400;500;700&display=swap');

/* --- CONFIGURACIÓN DE ALTURA Y BASE --- */
html, body {
    height: 100%; 
    margin: 0; 
    padding: 0;
    font-family: 'Poppins', sans-serif; /* Fuente general */
}

/* --- Estilos base para el body --- */
body {
    background: none; 
    display: flex; 
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Posicionamiento de la Imagen de Fondo --- */
.background-media {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2; /* Más bajo para el backdrop-filter */
    opacity: 0.8; 
}

/* --- Contenedor General del Título (Ingresar a la Tienda) --- */
.titulo-container {
    position: absolute;
    top: 20%; /* AJUSTE CLAVE: SUBIMOS EL TÍTULO para que no se oculte */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    color: #4b0000; /* Vino oscuro */
    width: 100%;
    max-width: 350px; 
}

/* --- Título principal (Ingresar) --- */
.titulo-container h1 {
    font-family: 'Cormorant Garamond', serif; 
    font-size: 3.5em; /* TAMAÑO GRANDE Y UNIFORME */
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    display: block; 
}

/* --- Subtítulo (a la Tienda) --- */
.titulo-container h2 {
    font-family: 'Cormorant Garamond', serif; /* Usamos la misma fuente elegante */
    font-size: 3.5em; /* Un poco más pequeño para dar jerarquía, pero visible */
    font-weight: 700;
    margin-top: 5px;
    color: #4b0000; /* Vino primario */
    display: block;
}


/* --- Contenedor General del Formulario (.group y form) --- */
form, .group { 
    max-width: 300px; 
    width: 90%;
    
    /* Centrado Absoluto en el centro de la página */
    position: absolute; 
    top: 60%; /* AJUSTE CLAVE: BAJAMOS EL FORMULARIO para dejar espacio al título */
    left: 50%; 
    transform: translate(-50%, -50%); 
    
    /* Estilo Glassmorphism (Borroso/Transparente) */
    padding: 30px; 
    background-color: rgba(255, 255, 255, 0.15); /* Fondo muy claro y semi-transparente */
    backdrop-filter: blur(8px); /* Efecto borroso más fuerte */
    -webkit-backdrop-filter: blur(8px);
    
    border-radius: 15px;
    /* Borde sutil */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Sombra elegante */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    z-index: 1; 
    margin: 0; 
    color: #4b0000; /* Color de texto predeterminado para etiquetas */
}

/* --- Estilos de campos de entrada (tipo modern/minimalista) --- */
input[type="text"],
input[type="password"] {
    width: 100%; 
    padding: 10px 0; /* Solo padding vertical */
    margin-bottom: 25px; 
    border: none; 
    border-bottom: 2px solid #800000; /* Línea de fondo vino */
    background-color: transparent; /* Fondo transparente */
    box-sizing: border-box; 
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: border-bottom-color 0.3s;
}
input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(75, 0, 0, 0.6); /* Placeholder de color vino suave */
}

/* --- Estilos para el botón de envío (Color VINO DEGRADADO) --- */
input[type="submit"] { 
    width: 100%;
    /* Degradado lineal de Vino a Marrón Rojizo */
    background-image: linear-gradient(to right, #800000, #A52A2A); 
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px; 
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px; 
    /* Sombra para el botón */
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.6);
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

/* Efectos al enfocar y pasar el mouse */
input[type="text"]:focus,
input[type="password"]:focus {
    border-bottom-color: #4b0000; /* Vino muy oscuro al enfocar */
    box-shadow: none; 
    outline: none;
    background-color: transparent;
}

input[type="submit"]:hover {
    background-image: linear-gradient(to right, #A52A2A, #800000); /* Degradado inverso en hover */
    box-shadow: 0 6px 15px rgba(165, 42, 42, 0.8);
    transform: translateY(-2px);
}