/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #0d1b2a;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Partículas */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Contenedor principal */
.login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 550px; /* Aumenté el max-width a 450px */
    padding: 2.8rem 2.3rem;
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.8s ease forwards;
}

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

.login-box h2 {
    text-align: center;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.form-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.2rem;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 1rem 0 2.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    border-color: #00c6ff;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fff;
}

.btn {
    width: 100%;
    height: 46px;
    border-radius: 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #00c6ff, #007bff);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.8);
    background: linear-gradient(45deg, #007bff, #00a1cc);
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    .login-box {
        max-width: 90%;
        padding: 2rem;
    }
}

.btn-recover {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-recover:hover {
    background: #ff4b4b;
}
