/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.8); }
    60%  { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Estilos para #loginform */
#loginform {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#loginform::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#loginform:hover::before {
    left: 100%;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Imagen de logo (si deseas usar class o id) */
#loginform .logo {
    margin-bottom: 30px;
    position: relative;
}

#loginform .logo img {
    width: 100%;
    max-width: 180px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

#loginform .logo img:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Botones */
.glowing-button {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    padding: 18px 40px;
    text-align: center;
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glowing-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.glowing-button:hover::before {
    left: 100%;
}

.glowing-button.continuar {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    box-shadow: 
        0 10px 25px rgba(0, 51, 102, 0.3),
        0 0 20px rgba(0, 51, 102, 0.2);
}

.glowing-button.continuar:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 51, 102, 0.4),
        0 0 30px rgba(0, 51, 102, 0.3);
}

.glowing-button.multimozo {
    background: linear-gradient(135deg, #ea5b5d 0%, #f06292 100%);
    box-shadow: 
        0 10px 25px rgba(234, 91, 93, 0.3),
        0 0 20px rgba(234, 91, 93, 0.2);
}

.glowing-button.multimozo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(234, 91, 93, 0.4),
        0 0 30px rgba(234, 91, 93, 0.3);
}

/* Íconos de Redes Sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.glowing-icon {
    position: relative;
    font-size: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.glowing-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.glowing-icon:hover::before {
    opacity: 0.3;
    animation: rotate 2s linear infinite;
}

.glowing-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glowing-icon.facebook {
    color: #3b5998;
    box-shadow: 0 0 10px #3b5998;
}

.glowing-icon.facebook:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px #3b5998, 0 0 40px #3b5998;
}

.glowing-icon.whatsapp {
    color: #25d366;
    box-shadow: 0 0 10px #25d366;
}

.glowing-icon.whatsapp:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px #25d366, 0 0 40px #25d366;
}

.glowing-icon.instagram {
    color: #e4405f;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    box-shadow: 0 0 10px #e4405f;
}

.glowing-icon.instagram:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px #e4405f, 0 0 40px #e4405f;
}

/* Rotación del texto con color */
.welcome-title {
    background: linear-gradient(135deg, #003366, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.welcome-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.rotating-text {
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    background: linear-gradient(45deg, #00bfff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rotating-text:hover {
    transform: rotateY(360deg) scale(1.1);
}


/* Fondo mejorado con gradiente */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* Partículas de fondo animadas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

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

.form-floating {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 51, 102, 0.1);
    border-radius: 15px;
    padding: 18px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #003366;
    box-shadow: 
        0 0 0 3px rgba(0, 51, 102, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-floating label {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
    padding: 0 10px;
    border-radius: 10px;
    color: #666;
    font-weight: 500;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    color: #003366;
    transform: scale(0.9);
}


@media (max-width: 768px) {
    #loginform {
        margin: 20px;
        padding: 40px 30px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .glowing-button {
        padding: 16px 30px;
        font-size: 14px;
    }
    
    .glowing-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #loginform {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .social-icons {
        gap: 15px;
    }
}
