:root {
    --primary: #004a87;
    --secondary: #00a1e4;
}

/* 1. Fondo Animado Original */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #004a87, #002d52, #00a1e4, #004a87);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Tarjeta con Animación de Entrada */
.login-card {
    background: rgba(255, 255, 255, 0.3); /* Fondo muy suave */
    backdrop-filter: blur(10px);        /* Desenfoque de fondo */
    -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */

    width: 400px;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: bounceIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(.3); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 3. Logo con Animación de Flote */
.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    width: 250px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

h2 {
    color: #333;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

p {
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
}

/* 4. Botón de Google más grande */
.google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.alert {
    background: #fdf2f2;
    color: #c81e1e;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid #f9d6d6;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
