.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}
/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group input[type="text"]::placeholder {
    color: #bfbfbf;
}

.verify-group{
    display:flex;
    align-items: center;
    margin-bottom: 20px;
}

.verify-group input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.verify-group .verify-btn {
    background-color: #d2e9f9;
    color: #098fe9;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.verify-group .verify-btn:hover {
    background-color: #9bd2f8;
}

.verify-tip {
    display: none;
    color: red;
    font-weight: 600;
    font-size: 0.85rem;
}

.verify-tip.active {
    display: flex;
}

.form-actions {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    #border-top: 1px solid #f0f0f0;
}

.login-btn {
    background-color: #656565e3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    white-space:nowrap;
    min-width:222px;
}

.login-btn.active {
    background-color: var(--primary-color);
    cursor: pointer;
}

/* 文字验证码模态框样式 */
.captcha-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.captcha-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 18px;
    font-weight: bold;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.captcha-body {
    padding: 20px;
}

.captcha-prompt {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.captcha-image-container {
    width: 100%;
    height: 150px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    background: #f9f9f9;
}

.word-item {
    position: absolute;
    padding: 4px 8px;
    /*background: rgba(255, 255, 255, 0.9);*/
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    transition: all 0.2s;
}

.word-item:hover {
    background: rgba(159, 255, 82, 0.9);
}

.word-item.selected {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.captcha-actions {
    display: flex;
    gap: 16px;
    margin-left: 10px;
    margin-right: 10px;
}

.verify-captcha-btn {
    flex: 1;
    padding: 8px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-captcha-btn {
    flex: 1;
    padding: 8px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        margin: 20px;
    }

    .modal-body {
        padding: 10px;
    }

    .login-btn {
        width: 100%;
    }
}