/**
 * 图形验证码弹窗插件样式
 */

/* 遮罩层 */
.model-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

/* 弹窗容器 */
.captcha-modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.captcha-modal-content h2 {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: normal;
}

/* 主体内容 */
.captcha-body {
    margin-bottom: 20px;
}

/* 验证码图片区域 */
.captcha-img-box {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.captcha-img-box #modalCaptchaImg {
    display: inline-block;
    height: 50px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.captcha-img-box .refresh-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #3D8CCA;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* 输入框区域 */
.captcha-input-box {
    text-align: center;
}

.captcha-input-box .captcha-text-input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.captcha-input-box .captcha-text-input:focus {
    border-color: #3d9edd;
    outline: none;
}

.captcha-input-box .captcha-error {
    color: #ff4444;
    font-size: 12px;
    margin: 8px 0 0 0;
    text-align: center;
    min-height: 16px;
}

/* 底部按钮 */
.captcha-footer {
    text-align: center;
}

.captcha-footer button {
    width: 100px;
    height: 36px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 8px;
}

.captcha-footer .btn-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.captcha-footer .btn-cancel:hover {
    background-color: #e8e8e8;
}

.captcha-footer .btn-confirm {
    background-color: #3D8CCA;
    color: #fff;
}

.captcha-footer .btn-confirm:hover {
    background-color: #2c6aa0;
}
