/* =========================================
   VARIABLES PREMIUM WONDERBAR (ALICE VIBE)
========================================= */
:root {
    --bg-body: #20472d;        
    --bg-card: #080808;        
    --bg-input: #121212;       
    --primary-accent: #20472d; 
    --primary-hover: #2b5c3b;  
    --text-white: #ffffff;     
    --text-muted: #a9a9a9;     
    --border-color: #2b2b2b;   
    --font-main: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESETEO Y BASE
========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, rgba(32, 71, 45, 0.8) 0%, #050a06 80%);
    color: var(--text-white);
    line-height: 1.6;
    padding: 40px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* =========================================
   CONTENEDORES Y LOGO ANIMADO
========================================= */
.logo-container { margin-bottom: 30px; }

.logo { 
    max-width: 240px; 
    height: auto; 
    transition: var(--transition); 
}

/* Animación Onírica Flotante para el Logo */
.mystic-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); filter: drop-shadow(0px 15px 15px rgba(0, 0, 0, 0.5)); }
    100% { transform: translateY(0px); }
}

.container {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 500px; /* Reduje un poco el ancho máximo para que un formulario corto se vea más estético */
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

h1 {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px; /* Ajustado para un texto más largo */
    font-size: 2em;
    color: var(--text-white);
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* =========================================
   FORMULARIOS E INPUTS
========================================= */
.form-group { margin-bottom: 24px; width: 100%; }

label {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1.05em;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px rgba(32, 71, 45, 0.5);
    background-color: #1a1a1a;
}

/* =========================================
   BOTONES DE ACCIÓN
========================================= */
button {
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
    border: none;
}

.btn-primary {
    display: block;
    text-align: center;
    width: 100%;
    background-color: var(--primary-accent);
    color: var(--text-white);
    border: 1px solid var(--primary-accent);
    padding: 18px;
    font-size: 1.15em;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(32, 71, 45, 0.3);
    transition: var(--transition);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 71, 45, 0.6);
}

.btn-primary:active:not(:disabled) { 
    transform: translateY(0) scale(0.98); 
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================================
   ANIMACIONES CLAVE
========================================= */
.animate-fade-in { animation: fadeIn 1.5s ease forwards; }
.animate-slide-up { animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   CORRECCIÓN VERSIÓN MÓVIL
========================================= */
@media (max-width: 650px) {
    body { padding: 20px 15px; }
    .container { 
        padding: 35px 20px; 
        border-radius: 12px; 
    }
    h1 { font-size: 1.8em; }
}