/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

/* General - Fondo con imagen */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* Imagen de fondo: Naturaleza elegante/Primavera */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../Imagenes/fondo_navidad.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Contenedor con efecto de Cristal (Glassmorphism) */
.login-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Desenfoque del fondo */
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo con animación suave */
.logo-container {
    margin-bottom: 25px;
}

.logo {
    width: 60%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: logoBounce 3s ease-in-out infinite alternate;
}

@keyframes logoBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Títulos */
h1 {
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin: 0;
    line-height: 1.2;
}

.event-title {
    color: #800020; /* Color vino */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 30px;
}

h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Botones Principales */
.button-container {
    display: flex;
    flex-direction: column; /* Apilados para mejor UX móvil */
    gap: 15px;
}

.button {
    background-color: #800020; /* Vino Tinto Base */
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
}

.button:hover {
    background-color: #660018;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.3);
}

.button:active {
    transform: scale(0.98);
}

/* Variación para el botón de Invitados */
.button-invitado {
    background-color: white;
    color: #800020;
    border: 2px solid #800020;
    box-shadow: none;
}

.button-invitado:hover {
    background-color: #f8f8f8;
    border-color: #660018;
    color: #660018;
}

/* Formulario (Mantenido y mejorado) */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

.form-group label {
    color: #444;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    margin-left: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    color: #333;
    background-color: #fdfdfd;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #800020;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.1);
}

/* Botón de Submit */
.submit-button {
    background-color: #800020;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #660018;
    transform: scale(1.02);
}

/* Enlaces y Mensajes */
a {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #800020;
    transition: 0.3s;
}

a:hover {
    color: #CD6155;
}

.success-message {
    background-color: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #b2f5ea;
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.return-link {
    background-color: #CD6155;
    color: white !important;
    border-radius: 8px;
    margin-top: 15px;
}