/**
 * Auth Popup Modal Styling
 */

/* Modal Overlay */
.auth-popup-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10001; /* Above all other content including price popup (10000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Modal Content Container */
.auth-popup-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.2s ease-in;
}

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

/* Modal Header */
.auth-popup-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

/* Form Elements */
.auth-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-popup-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.auth-popup-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Button Container */
.auth-popup-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.auth-popup-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-popup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-popup-login-btn {
    background-color: #4CAF50;
    color: white;
}

.auth-popup-login-btn:hover:not(:disabled) {
    background-color: #45a049;
}

.auth-popup-cancel-btn {
    background-color: #f44336;
    color: white;
}

.auth-popup-cancel-btn:hover {
    background-color: #da190b;
}

/* Status Message */
.auth-popup-status {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    min-height: 20px;
}

.auth-popup-status.success {
    color: #4CAF50;
    background-color: #e8f5e9;
}

.auth-popup-status.error {
    color: #f44336;
    background-color: #ffebee;
}

.auth-popup-status.info {
    color: #2196F3;
    background-color: #e3f2fd;
}

/* Global Auth Status Indicator */
.global-auth-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    user-select: none;
}

.global-auth-status:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.global-auth-status.authenticated {
    background-color: #4CAF50;
    color: white;
}

.global-auth-status.not-authenticated {
    background-color: #f44336;
    color: white;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-popup-content {
        padding: 20px;
        width: 95%;
    }

    .auth-popup-content h2 {
        font-size: 20px;
    }

    .auth-popup-buttons {
        flex-direction: column;
    }

    .global-auth-status {
        font-size: 12px;
        padding: 6px 12px;
    }
}
