body {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efecto de partículas flotantes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container_mobile {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

a.informative_mobile {
    flex-basis: 70%;
    background: linear-gradient(135deg, #1a62c6 0%, #2980b9 50%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Efecto de ondas animadas en el fondo */
a.informative_mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

a.informative_mobile .img_informative {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.fondo_login {
    flex-basis: 45%;
    height: 0vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: relative;
}

.fondo_login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.view.login {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    padding: 3rem !important;
    max-width: 420px;
    width: 100%;
    margin: 0 !important;
    border-radius: 24px !important;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.view.login:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.login > IMG {
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

p.input_login {
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 4px;
}

#user_name,
#user_password,
select[name='login_language'] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    background: rgba(248, 250, 252, 0.8) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#user_name:focus,
#user_password:focus,
select[name='login_language']:focus {
    outline: none;
    border-color: #3b82f6 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px);
}

#user_name:hover,
#user_password:hover,
select[name='login_language']:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.boton_login {
    width: 100%;
    background: linear-gradient(135deg, #002eff 0%, #8791bb 100%) !important;    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 600;
    margin-top: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.boton_login::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;
}

.boton_login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    background: linear-gradient(135deg, #2f80db 0%, #2641da 100%) !important;
}

.boton_login:hover::before {
    left: 100%;
}

.boton_login:active {
    transform: translateY(0);
}

.login_more a,
a.boton_registro {
    color: #667eea !important;
    font-size: 14px !important;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.login_more a::after,
a.boton_registro::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.login_more a:hover::after,
a.boton_registro:hover::after {
    width: 100%;
}

.login_more a:hover,
a.boton_registro:hover {
    color: #5a67d8 !important;
}

.error {
    display: block;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#post_error:empty {
    display: none !important;
}

#generate_success {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    height: 0 !important;
    min-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden;
}

.top-bar {
    background-color: #2a2828;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2828;
    position: relative;
    z-index: 10;
}

.top-bar-brand {
    font-weight: bold;
    font-style: oblique;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.top-bar-links a {
    color: #4a5568;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.top-bar-links a:hover {
    color: #ffa500;
    text-decoration: underline;
}

.container_mobile {
    min-height: calc(100vh - 73px);
}

/* Efectos adicionales de modernidad */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.view.login {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de cristal mejorado */
.view.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px;
    pointer-events: none;
}

/* Responsive mejorado */
@media (max-width: 800px) {
    .container_mobile {
        display: block !important;
        background: linear-gradient(135deg, #2b6cc8 0%, #2b6cc8 100%);
    }
    
    .informative_mobile, .img_informative {
        display: none;
    }
    
    .fondo_login {
        background: transparent !important;
        backdrop-filter: none !important;
        width: 100%;
        padding: 40px 20px;
    }
    
    .view.login {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
        padding: 2.5rem !important;
        max-width: 400px;
        border-radius: 24px !important;
    }
    
    .view.login:hover {
        transform: none;
    }
    
    .boton_login:hover {
        transform: none;
    }
    
    #user_name:focus,
    #user_password:focus,
    select[name='login_language']:focus {
        transform: none;
    }
}
