/* Login Button Styling - Centered */
#loginBtn {
    /* Position in center of screen */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;

    /* Base button styling to match existing buttons */
    background-color: #1da1c9;
    border-color: #1da1c9;
    color: #fff;
    border: 1px solid;
    border-radius: 8px;
    padding: 12px 24px;
    /* Slightly larger for center positioning */
    font-size: 1.1rem;
    /* Slightly larger font */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(29, 161, 201, 0.3);
    /* Enhanced shadow for center */
    display: inline-block;
    text-decoration: none;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

/* Enhanced hover effect for centered button */
#loginBtn:hover {
    background-color: #168ab3;
    border-color: #168ab3;
    transform: translate(-50%, -50%) scale(1.05);
    /* Scale effect while maintaining center */
    box-shadow: 0 6px 20px rgba(29, 161, 201, 0.4);
}

/* Hover effect to match existing buttons */
#loginBtn:hover {
    background-color: #168ab3;
    border-color: #168ab3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(29, 161, 201, 0.35);
}

/* Focus state for accessibility */
#loginBtn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(29, 161, 201, 0.25);
}

/* Active state */
#loginBtn:active {
    background-color: #147a9e;
    border-color: #147a9e;
    transform: translateY(0);
}

/* Disabled state */
#loginBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Container for login button to match layout */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 1rem 0;
}

/* Logout Button Styling */
#logoutBtn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    border: 1px solid;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    display: inline-block;
    text-decoration: none;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

#logoutBtn:hover {
    background-color: #fecaca !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
    transform: none;
    box-shadow: none;
}

#logoutBtn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Blur overlay for unauthenticated state */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    pointer-events: auto;
    /* Changed from 'none' to block interactions */
    transition: opacity 0.3s ease;
}

/* Allow only login button to be interactive */
.blur-overlay~#loginBtn {
    pointer-events: auto;
}

/* Block all other interactions when blur is active */
.blur-overlay~*:not(#loginBtn) {
    pointer-events: none;
}

/* Ensure user info appears above blur */
.user-info-container {
    z-index: 9999;
    /* Higher than blur overlay */
}

/* Responsive design */
@media (max-width: 768px) {
    #loginBtn {
        width: 100%;
        max-width: 300px;
        padding: 12px 16px;
        font-size: 1rem;
    }

    #logoutBtn {
        padding: 12px 16px;
        font-size: 1rem;
    }
}