/* 忘记密码表单样式 */
.ec-forgot-password-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
 
.regs-tabs .ec-forgot-password-container {
    max-width: 400px;
    margin: 0;
    padding: 0;
    background: unset;
    border-radius: 0;
    box-shadow: unset;
}
.ec-forgot-password-form {
    width: 100%;
}

/* 表单标题 */
.ec-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.ec-form-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* 表单主体 */
.ec-form-body {
    margin-bottom: 30px;
}

.ec-form-group {
    margin-bottom: 20px;
}

.ec-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}

.ec-form-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 18px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    margin-bottom: 5px;
}

.ec-form-input:focus {
    outline: none;
    border-color: #007bff;
}

.ec-form-input.error {
    border-color: #dc3545;
}

.ec-form-links{
   font-size: 16px;
    font-weight: 400;
    color: #000;
    margin: 0;
    margin-top: 12px; 
    text-align: center;
}

.ec-form-links{
    color: #003AF5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
/* 验证码输入组 */
.ec-verification-code-group {
    position: relative;
    display: flex;
    align-items: center;
}

.ec-verification-code-group .ec-form-input {
    flex: 1;
    padding-left: 210px;
}

/* .ec-send-code-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #28a745;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.ec-send-code-btn:hover {
    background-color: rgba(40, 167, 69, 0.1);
} */

.ec-send-code-btn:disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* 密码输入组 */
.ec-password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.ec-password-input .ec-form-input {
    flex: 1;
    padding-right: 50px; /* 为眼睛图标留出空间 */
}

.ec-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 3px;
    transition: color 0.3s ease;
}

.ec-password-toggle:hover {
    color: #333;
}

.ec-eye-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 提交按钮 */
/* .ec-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #dc3545; 
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ec-submit-btn:hover {
    background-color: #c82333;
}

.ec-submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
*/
/* 表单底部 */
.ec-form-footer {
    text-align: center;
    margin-bottom: 24px;
}

.ec-form-links {
    font-size: 16px;
    color: #000;
}
.ec-forgot-password-container a.ec-login-link{
    color:#003AF5;
}
/*
.ec-login-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.ec-login-link:hover {
    text-decoration: underline;
} */

.ec-previous-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.ec-previous-link:hover {
    text-decoration: underline;
}

/* 错误信息 */
.ec-form-error {
    color: #dc3545;
    font-size: 12px;
    display: none;
}

.ec-form-error:not(:empty) {
    display: block;
}

/* 错误提示弹窗样式 - 与登录注册页完全一致 */
/* .ec-error-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 450px;
    min-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

.ec-error-popup-icon {
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ec-error-popup-icon::before {
    content: '×';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.ec-error-popup-message {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}


.ec-success-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 450px;
    min-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

.ec-success-popup-icon {
    width: 20px;
    height: 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-success-popup-icon::before {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.ec-success-popup-message {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}


.ec-info-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    max-width: 450px;
    min-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

.ec-info-popup-icon {
    width: 20px;
    height: 20px;
    background: #2196f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-info-popup-icon::before {
    content: 'ℹ';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.ec-info-popup-message {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
} */

/* 弹窗动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.ec-error-popup.closing,
.ec-success-popup.closing,
.ec-info-popup.closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* 移动端弹窗样式 */
@media (max-width: 768px) {
    .ec-error-popup,
    .ec-success-popup,
    .ec-info-popup {
        width: auto;
        left: 0;
    }
}

/* 加载状态 */
.ec-forgot-password-form.ec-loading .ec-submit-btn {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .ec-forgot-password-container {
        margin: 10px;
        padding: 15px;
    }
    
    .ec-form-title {
        font-size: 20px;
    }
    
    .ec-send-code-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .ec-verification-code-group .ec-form-input {
        padding-right: 120px;
    }
} 