
/* ===== Clean Floating Popup Styles (NO OVERLAY) ===== */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent !important; /* NO background on wrapper */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    z-index: 10001;
    max-width: 420px;
    width: 90%;
    border: none;
    pointer-events: auto;
}

.popup > div {
    background: #fff !important; /* White background ONLY on inner box */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    border: 2px solid #e0e0e0;
}

.popup.show {
    display: block;
    animation: popupFadeIn 0.3s ease;
}

/* Keep login popup fully visible below fixed header. */
#loginModal.popup {
    top: 96px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2147483647 !important;
    max-height: calc(100vh - 108px) !important;
}

#loginModal.popup .login-container {
    max-height: calc(100vh - 128px) !important;
    overflow-y: auto !important;
}

#loginModal.popup.show {
    animation: loginDropIn 0.22s ease-out !important;
}

/* Keep login popup fully visible below fixed header. */
#loginModal.popup {
    top: 96px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2147483647 !important;
    max-height: calc(100vh - 108px) !important;
}

#loginModal.popup .login-container {
    max-height: calc(100vh - 128px) !important;
    overflow-y: auto !important;
    background: #fff !important;
    padding: 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

#loginModal.popup.show {
    animation: loginDropIn 0.22s ease-out !important;
}

/* Remove purple/bright focus highlight in login popup */
#loginModal input:focus,
#loginModal button:focus,
#loginModal a:focus,
#loginModal .form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

#loginModal .form-control:focus {
    border-color: #d1d5db !important;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}
@keyframes loginIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes loginDropIn {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes loginDropIn {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}
