body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Cambia el cursor a una mano al estar sobre el cuerpo del documento */
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('https://static.vecteezy.com/system/resources/previews/011/672/173/original/elegant-geometric-blue-and-gray-business-abstract-background-eps10-vector.jpg') no-repeat center center fixed; /* Ruta de la imagen de fondo de agua */
    background-size: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.animated-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Evita que los elementos animados interfieran con la interacción del usuario */
}

.leaf {
    position: absolute;
    width: 150px; /* Ajustamos el tamaño de la hoja */
    height: 150px; /* Ajustamos el tamaño de la hoja */
    background-image: url('hoja.png'); /* Ruta de la imagen de la hoja */
    background-size: contain; /* Ajustamos para que la imagen se ajuste dentro del tamaño especificado */
    background-repeat: no-repeat;
    opacity: 0.7;
    animation: float 10s linear infinite;
    cursor: pointer; /* Indica que las hojas son clicables */
}

.leaf1 { animation-delay: 0s; }
.leaf2 { animation-delay: 1s; }
.leaf3 { animation-delay: 2s; }
.leaf4 { animation-delay: 1s; }
.leaf5 { animation-delay: 2s; }
.leaf6 { animation-delay: 1s; }
.leaf7 { animation-delay: 2s; }
.leaf8 { animation-delay: 1s; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
}

.raindrop {
    position: absolute;
    width: 15px; /* Tamaño de la gota de lluvia */
    height: 15px; /* Tamaño de la gota de lluvia */
    background: rgba(255, 255, 255, 0.7); /* Color y opacidad de la gota de lluvia */
    border-radius: 50%;
    animation: raindropEffect 1s linear;
    transform-origin: center;
    pointer-events: none; /* Evita que las gotas de lluvia sean clicables */
}

@keyframes raindropEffect {
    0% {
        transform: translateY(-50px) rotateZ(0deg) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotateZ(360deg) scale(1);
        opacity: 0;
    }
}
@keyframes fadeInUp {
    0% {
        transform: translateY(50px); /* Comienza desde una posición más baja */
        opacity: 0; /* Comienza con opacidad 0 (invisible) */
    }
    100% {
        transform: translateY(0); /* Termina en su posición original */
        opacity: 1; /* Opacidad completa */
    }
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
    opacity: 0; /* Inicia con opacidad 0 */
    animation: fadeInUp 0.8s ease-out forwards; /* Animación suave */
}

.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.content-container {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.logo-container img {
    max-width: 150px; /* Tamaño máximo del logo */
    display: block;
    margin: 0 auto; /* Centra el logo horizontalmente */
    border-radius: 50%; /* Borde redondeado */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra inicial */
    border: 4px solid transparent; /* Borde inicial transparente */
}

.logo-container img {
    max-width: 150px; /* Tamaño máximo del logo */
    display: block;
    margin: 0 auto; /* Centra el logo horizontalmente */
    border-radius: 50%; /* Borde redondeado */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra inicial */
    border: 4px solid transparent; /* Borde inicial transparente */
}

.logo-container img:hover {
    transform: scale(1.1) rotate(5deg); /* Escala y rotación más pronunciadas */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
    border-color: #2abaf3; /* Cambio de color del borde */
    background-color: rgb(255, 255, 255); /* Cambio de color de fondo */
    animation: pulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación de pulsación */
}

/* Animación de pulsación suave */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

h1 {
    color: black; /* negro */
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: small;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50; /* Azul oscuro */
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 30px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

button {
    position: relative;
    width: 100%;
    padding: 12px;
    background-color: #08bcf8; /* Color inicial del botón */
    border: none;
    border-radius: 30px;
    color: black;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transiciones generales */
    z-index: 1; /* Asegura que esté sobre el pseudo-elemento */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Sombra inicial */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 70%, rgba(255, 255, 255, 0.7) 100%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    border-radius: 50%;
    z-index: -1; /* Detrás del botón */
    pointer-events: none; /* Evita que se haga clic en el pseudo-elemento */
    opacity: 0; /* Inicialmente invisible */
}

button:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; /* Aparece al hacer hover */
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada al hacer hover */
}


@media (max-width: 768px) {
    .login-container {
        margin: 20px auto;
    }
}
.error-message {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #ff0000;
    background-color: #ffcccc;
    color: #ff0000;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}