/* CL Login Modal Styles */

/* Overlay: Ensures full screen and centering */
#cl-login-modal.cl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none; /* Handled by JS */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* Modal Content Box */
#cl-login-modal .cl-modal-content {
    background: transparent;
    box-shadow: none;
    width: 100%;
    max-width: 420px;
    margin: 0 20px; /* Safety margin on mobile */
    position: relative;
    padding: 0;
    animation: clLoginSlideUp 0.3s ease-out;
}

/* Close Button */
#cl-login-modal .report-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

#cl-login-modal .report-modal-close:hover {
    background: #f5c140; /* Brand Yellow */
    transform: rotate(90deg);
}

/* Login Card Override (Wrapper) */
#cl-login-modal .cl-dashboard-login-card {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Animation */
@keyframes clLoginSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
