/* 找回密码页面样式 */
/* 强制所有文本输入框、下拉框、多行文本字号达到 16px，彻底禁止 iOS Safari 自动缩放 */
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="image"]),
textarea,
select {
  font-size: 16px !important;
}

.forgot-password-page {
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.forgot-password-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.forgot-password-header {
    text-align: center;
    margin: 30px;
}

.forgot-password-header .logo {
    position: absolute; inset-inline-start: 20px; inset-block-start: 20px;
    transition: all 0.3s;
}

.forgot-password-header .logo img {
    height: 50px;
}

.forgot-password-header .logo:hover { transform: scale(1.1); filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1)); }

.forgot-password-header h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

.forgot-password-form-container {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #007bff;
    color: #fff;
}

.step.completed .step-number {
    background: #dbdbdc;
    color: #fff;
}

/* 表单样式 */
.forgot-form {
    display: none;
}

.forgot-form.active {
    display: block;
}

.form-step h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.step-desc {
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 验证码组件 */
.captcha-group .captcha-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-input input {
    flex: 1;
}

.captcha-img {
    height: 46px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.captcha-img:hover {
    border-color: #007bff;
}

/* 邮箱验证码输入 */
.email-code-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.email-code-input input {
    flex: 1;
}

.resend-btn {
    padding: 12px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.resend-btn:hover {
    background: #5a6268;
}

.resend-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.field-tip {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* 按钮样式 */
.next-btn, .reset-btn, .login-btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.next-btn:hover, .reset-btn:hover, .login-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.next-btn:disabled, .reset-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* 成功页面 */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    line-height: 60px;
    font-size: 24px;
}

.icon-check::before {
    content: "✓";
}

/* 页脚 */
.forgot-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.forgot-footer p {
    color: #6c757d;
    font-size: 14px;
    margin: 8px 0;
}

.forgot-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.forgot-footer a:hover {
    text-decoration: underline;
}

/* 加载状态 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误提示 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .forgot-password-form-container {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .step-indicator {
        margin-bottom: 30px;
    }
    
    .resend-btn {
        width: 40%;
    }
}

@media (max-width: 480px) {
    .forgot-password-form-container {
        padding: 25px 20px;
    }
    
    .forgot-password-header h1 {
        font-size: 20px;
    }
    
    .form-step h3 {
        font-size: 18px;
    }
}

@media (max-width: 330px) {
    .forgot-password-header h1 { display: none; }
    .forgot-password-form-container { margin: 0 !important; }
}