/**
 * Authentication Popup Styles
 */

/* Hide body content when authentication is pending */
body.auth-pending {
    overflow: hidden;
}

/* Overlay that covers the entire page */
.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background with 80% opacity */
    backdrop-filter: blur(8px); /* Blur effect for background */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's above everything else */
    transition: opacity 0.5s ease;
}

/* Fade out animation for overlay */
.auth-popup-overlay.auth-popup-fade-out {
    opacity: 0;
}

/* Popup container */
.auth-popup {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 400px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Popup content */
.auth-popup-content {
    padding: 30px;
    text-align: center;
}

/* Popup title */
.auth-popup-content h2 {
    margin: 0 0 20px;
    color: #fff;
    font-weight: 200;
    font-size: 24px;
}

/* Popup description */
.auth-popup-content p {
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 200;
    font-size: 16px;
}

/* Input group */
.auth-input-group {
    margin-bottom: 25px;
    position: relative;
}

/* Input field */
.auth-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--bs-border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.auth-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(252, 252, 252, 0.25);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error message */
.auth-error {
    color: var(--bs-danger);
    font-size: 14px;
    margin-top: 8px;
    text-align: left;
    min-height: 20px;
}

/* Submit button */
.auth-button {
    background-color: #ffffff1f;
    color: #fff;
    border: none;
    border-radius: var(--bs-border-radius);
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.auth-button:hover {
    background-color: #ffffff70;
    transform: translateY(-2px);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Locked button style */
.auth-button-locked {
    background-color: var(--bs-danger);
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-button-locked:hover {
    background-color: var(--bs-danger);
    transform: none;
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .auth-popup {
        width: 95%;
        max-width: 350px;
    }
    
    .auth-popup-content {
        padding: 25px 20px;
    }
    
    .auth-popup-content h2 {
        font-size: 22px;
    }
    
    .auth-popup-content p {
        font-size: 14px;
    }
    
    .auth-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .auth-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
