/* 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: clamp(24px, 6vw, 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(0, 0, 0, 0.25);
    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: clamp(110px, 30vw, 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: clamp(13px, 3vw, 16px);
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    padding: clamp(10px, 3.5vw, 18px) clamp(18px, 6vw, 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: clamp(12px, 4vw, 20px);
    flex-wrap: wrap;
    margin: 30px 0;
}

.glowing-icon {
    position: relative;
    font-size: clamp(18px, 6vw, 20px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 14vw, 60px);
    height: clamp(44px, 14vw, 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: clamp(1.4rem, 5vw, 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: clamp(0.95rem, 3.5vw, 1.1rem);
    margin-bottom: clamp(18px, 6vw, 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 del login en blanco */
body {
    background: #ffffff;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* Desactivar partículas/gradientes del fondo */
body::before {
    content: none;
}

@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: clamp(12px, 4vw, 18px) clamp(14px, 4vw, 20px);
    font-size: clamp(14px, 3.8vw, 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);
}

/* Ajuste de etiquetas para que no tapen el texto */
.form-floating label {
    position: absolute;
    top: clamp(0.5rem, 2.5vw, 0.7rem);
    left: clamp(0.7rem, 3vw, 0.85rem);
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
    display: inline-block;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

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


@media (max-width: 768px) {
    #loginform {
        margin: 16px;
        padding: clamp(20px, 6vw, 32px);
    }
    
    .welcome-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
    
    .glowing-button {
        padding: clamp(10px, 4vw, 14px) clamp(18px, 6vw, 30px);
        font-size: clamp(12px, 3.6vw, 14px);
    }
    
    .glowing-icon { width: clamp(40px, 14vw, 50px); height: clamp(40px, 14vw, 50px); font-size: clamp(16px, 5vw, 18px); }
}

@media (max-width: 480px) {
    #loginform {
        margin: 10px;
        padding: clamp(16px, 6vw, 24px);
    }
    
    .social-icons {
        gap: clamp(10px, 4.5vw, 15px);
    }

    /* Ajuste fino del movimiento de etiqueta en pantallas muy pequeñas */
    .form-control:focus + label,
    .form-control:not(:placeholder-shown) + label {
        transform: translateY(-14px) scale(0.85);
    }
}

/* Reducir tamaño visual del login en pantallas de escritorio */
@media (min-width: 992px) {
    #loginform {
        max-width: 420px;
        padding: 28px 22px;
        border-radius: 16px;
    }
    #loginform .logo img {
        max-width: 140px;
    }
    #loginform .glowing-button {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 40px;
    }
    #loginform .form-control {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }
    .welcome-title { font-size: 1.6rem; }
    .welcome-subtitle { font-size: 0.95rem; }
}

/* Centrado del panel en login (flex, ancho completo) */
#wrapper-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}
#wrapper-1 .col-12.col-md-8.col-lg-4 {
    width: 100%;
    max-width: min(92vw, 520px);
    margin: 0 auto;
}
#loginform { width: 100%; }
