/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo y animación del óvulo */
body, html {
    height: 100%;
    background: linear-gradient(135deg, #000428, #004e92);
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ovulo {
    max-width: 40%;
    animation: pulse 5s infinite ease-in-out;
    opacity: 0.2;
}

/* Animación del óvulo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Contenedor principal */
.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo de la tarjeta de login */
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    width: 400px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    transform: scale(0);
    opacity: 0;
    animation: appear 1.0s forwards 1.0s;
}

/* Animación para que el login aparezca */
@keyframes appear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Formulario */
.form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transition: 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.4);
}

input[type="submit"] {
    padding: 12px;
    background: linear-gradient(to right, #0072ff, #00c6ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

input[type="submit"]:hover {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    transform: scale(1.05);
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .ovulo {
        max-width: 70%;
    }

    .card {
        width: 95%;
        padding: 40px 25px;
    }

    input[type="text"],
    input[type="password"],
    input[type="submit"] {
        font-size: 16px;
    }

    h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .ovulo {
        max-width: 90%;
    }

    .card {
        width: 95%;
        padding: 30px 20px;
    }

    h2 {
        font-size: 20px;
    }

    input[type="submit"] {
        font-size: 16px;
    }
}
