/* ========================================
   LOGIN BUTTON IN NAVBAR
   ======================================== */
.login-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-blue);
    color: white;
    padding: 10px 25px;
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
}

.login-button:hover {
    background: rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.login-button i {
    font-size: 1.2rem;
}

/* ========================================
   LOGIN MODAL (Transparentes Frame)
   ======================================== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: rgba(20, 15, 40, 0.92);
    backdrop-filter: blur(20px);
    border: 3px solid;
    border-image: var(--rainbow);
    border-image-slice: 1;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 0, 255, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Modal Header */
.login-modal-header {
    background: rgba(30, 20, 60, 0.95);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.login-modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--rainbow);
    background-size: 400% 400%;
    animation: rainbow 8s ease infinite;
}

.login-modal-header h2 {
    font-family: 'Varela Round', sans-serif;
    font-size: 2.2rem;
    background: var(--rainbow);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 10s ease infinite;
    margin: 0;
}

.close-button {
    background: rgba(255, 0, 102, 0.2);
    border: 2px solid var(--neon-pink);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-button:hover {
    background: rgba(255, 0, 102, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
}

/* Modal Body */
.login-modal-body {
    padding: 40px 35px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: var(--neon-blue);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group label i {
    margin-right: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--neon-blue);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--neon-pink);
    transform: translateY(-50%) scale(1.2);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.95rem;
    cursor: pointer;
}

.remember-me input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    color: var(--neon-pink);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--neon-blue);
    text-decoration: underline;
}

/* Login Submit Button */
.login-submit {
    width: 100%;
    padding: 18px;
    background: var(--rainbow);
    background-size: 400% 400%;
    border: none;
    border-radius: 20px;
    color: white;
    font-family: 'Varela Round', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    animation: rainbow 6s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
    background-size: 400% 400%;
}

/* Divider */
.login-divider {
    position: relative;
    margin: 30px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    background: rgba(20, 15, 40, 0.92);
    padding: 0 15px;
    color: #888;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    padding: 15px;
    border: 2px solid;
    border-radius: 15px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn i {
    font-size: 1.4rem;
}

.social-btn.discord {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
    color: #5865F2;
}

.social-btn.discord:hover {
    background: rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

.social-btn.google {
    background: rgba(255, 255, 255, 0.1);
    border-color: #EA4335;
    color: #EA4335;
}

.social-btn.google:hover {
    background: rgba(234, 67, 53, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(234, 67, 53, 0.4);
}

/* Register Link */
.register-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-link p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 1rem;
}

.register-btn {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 12px 35px;
    border-radius: 25px;
    font-family: 'Varela Round', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.register-btn:hover {
    background: rgba(0, 255, 136, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Responsive Login Modal */
@media (max-width: 768px) {
    .login-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .login-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .login-modal-body {
        padding: 30px 25px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .login-submit {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .social-login {
        gap: 10px;
    }
    
    .social-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .nav-container {
        gap: 15px;
    }
    
    .login-button {
        padding: 8px 20px;
        font-size: 14px;
        margin-left: 15px;
    }
}