* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden;
}

/* Loader inicial */
#loader {
    position: fixed;
    background: #000;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 150px;
    animation: fadePulse 1.5s infinite;
}

@keyframes fadePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Fondo de partículas */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url('fondo_empresa.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Caja de login con glow azul */
.login-container {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro sólido */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: #f5f5f5; /* Texto claro */
    animation: fadeIn 1s ease-in-out;
    max-width: 320px;
    margin: auto;
    top: 20%;
    border: 1px solid rgba(0, 198, 255, 0.5); /* Borde azul */
    box-shadow: 
        0 0 15px rgba(0, 198, 255, 0.5), /* Brillo cercano */
        0 0 30px rgba(0, 198, 255, 0.3), /* Brillo medio */
        0 0 50px rgba(0, 198, 255, 0.2); /* Brillo lejano */
}

h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px #00c6ff; /* Glow en el título */
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 8px;
    outline: none;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

input:focus {
    border: 1px solid rgba(0, 198, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

input::placeholder {
    color: rgba(255,255,255,0.6);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.6);
    background: linear-gradient(45deg, #0072ff, #00c6ff);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
