/* Estilo general del cuerpo */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%); /* Gradiente oscuro con tonos tecnológicos */
}

/* Fondo de partículas */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Contenedor del login */
.login-container {
    background: rgba(255, 255, 255, 0.1); /* Fondo con transparencia para efecto de vidrio */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px); /* Efecto de vidrio esmerilado más pronunciado */
    animation: fadeIn 1s ease-in-out;
}

/* Animación de entrada */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-logo {
    margin-bottom: 25px;
}

.login-logo img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 221, 235, 0.5)); /* Efecto de brillo cian */
}

.login-logo img:hover {
    transform: scale(1.05); /* Efecto de aumento al pasar el mouse */
}

/* Título del login */
.login-container h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Subtítulo */
.login-container .subtitle {
    margin-bottom: 25px;
    color: #a0a0a0;
    font-size: 1rem;
    font-weight: 400;
}

/* Estilo del formulario */
.login-form .form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.login-form label {
    position: absolute;
    top: 50%;
    left: 40px; /* Espacio para el ícono */
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
}

.login-form input:focus + label,
.login-form input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: #00ddeb; /* Color cian */
    background: rgba(255, 255, 255, 0.1);
    padding: 0 5px;
    border-radius: 5px;
}

/* Contenedor de los campos de entrada con iconos */
.login-form .input-wrapper {
    position: relative;
}

.login-form .input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #00ddeb; /* Color cian */
    font-size: 1.1rem;
}

.login-form input {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Espacio para el ícono */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.login-form input::placeholder {
    color: transparent; /* Oculta el placeholder para el efecto de label flotante */
}

.login-form input:focus {
    border-color: #00ddeb;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Estilo del botón */
.login-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #00ddeb 0%, #a29bfe 100%); /* Gradiente tecnológico */
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5); /* Efecto de brillo */
}

.login-form 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: 0.5s;
}

.login-form button:hover::before {
    left: 100%;
}

.login-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 221, 235, 0.7);
}

.login-form button:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.3);
}

/* Estilo de los mensajes de éxito y error */
.alert-success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: none;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: none;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo del footer */
footer {
    position: absolute;
    bottom: 20px;
    color: #a0a0a0;
    font-size: 0.9rem;
    opacity: 0.8;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Ajustes para dispositivos móviles */
@media (max-width: 576px) {
    .login-container {
        padding: 30px;
        max-width: 90%;
        border-radius: 15px;
    }

    .login-container h2 {
        font-size: 1.8rem;
    }

    .login-container .subtitle {
        font-size: 0.9rem;
    }

    .login-logo img {
        max-width: 120px;
    }

    .login-form input {
        padding: 10px 10px 10px 35px;
        font-size: 0.9rem;
    }

    .login-form .input-icon {
        font-size: 1rem;
        left: 12px;
    }

    .login-form button {
        padding: 12px;
        font-size: 1.1rem;
    }

    footer {
        font-size: 0.8rem;
        bottom: 15px;
    }
}