/* RESET GENERAL */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: Poppins, sans-serif;
}

/* PARTÍCULAS DETRÁS */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* BOTONES DE VENTANA */
#window-buttons {
    position: fixed;
    top: 12px;
    right: 18px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}

#window-buttons .btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s;
    box-shadow: 0 0 10px #b300ff;
}

#minimize { background: #a020f0; }
#close { background: #ff00e6; }

#window-buttons .btn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 14px #ff45ff;
}

/* LOGIN CENTRADO */
#login-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 310px;
    padding: 0 10px; 


    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    z-index: 5;

    animation: fadeIn 0.9s ease-out;
}

/* LOGO */
#logo {
    width: 180px;
    filter: drop-shadow(0 0 25px #b300ff);
    animation: float 4s infinite ease-in-out;
    
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* INPUT WRAPPER */
.input-wrapper {
    width: 100%;
    position: relative;
}

/* ICONO */
.input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #d8b3ff;
}

/* INPUT COMPACTO */
.input {
    width: 100%;
    height: 32px;           
    padding-left: 34px;      
    padding-right: 10px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);

    font-size: 13px;
    color: white;
    outline: none;
    transition: 0.25s;

    box-sizing: border-box;   
}


.input:focus {
    border-color: #ff4cff;
    box-shadow: 0 0 12px #d600ff, 0 0 20px #8b00ff inset;
}

/* BOTÓN */
#login-button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(90deg, #ff00ff, #9d00ff);
    color: white;
    font-size: 16px;
    font-weight: bold;

    box-shadow: 0 0 20px #b300ff;
    cursor: pointer;
    transition: 0.20s;
}

#login-button:hover {
    transform: scale(1.04);
    box-shadow: 0 0 25px #ff44ff;
}

/* ANIMACIÓN DE APARICIÓN */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* MENSAJE DE ERROR / INFORMACIÓN */
/* Mensaje oculto por defecto */
#error-msg {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #ff55ff;
    background: rgba(0,0,0,0.55);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 0 12px #ff00ff;
    width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Cuando hay mensaje */
#error-msg.show {
    display: block;
    opacity: 1;
}




