/* captcha.css */
.captcha-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.captcha-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    max-width: 90%;
    animation: captcha-popup 0.3s ease-out;
}

@keyframes captcha-popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.captcha-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    height: 40px;
    line-height: 40px;
}

.captcha-close {
    background: none;
    border: none;
    font-size: 44px;
    color: #666 !important;
    cursor: pointer;
    padding: 0;
    height: 40px;
    line-height: 40px;
}

.captcha-close:hover {
    color: #333;
}

.captcha-body {
    padding: 20px;
}

#captchaCanvas {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #2196F3 !important;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 18px;
    margin-bottom: 15px;
}

.captcha-refresh:hover {
    text-decoration: underline;
}

.captcha-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 24px;
    width: 60px;
}

.captcha-input:focus {
    outline: none;
    border-color: #2196F3;
}

.captcha-submit {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.2s;
}

.captcha-submit:hover {
    background-color: #1976D2;
}

.captcha-message {
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}