/* 忘记密码模态框样式 */
.forgot-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.forgot-password-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.forgot-password-header {
    margin-bottom: 30px;
}

.forgot-password-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.forgot-password-logo-image {
    width: 170px;
    height: 50px;
}

.forgot-password-brand {
    text-align: center;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #FF8C00;
    margin-bottom: 5px;
}

.brand-domain {
    background: #FF0000;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.forgot-password-body {
    margin-bottom: 30px;
}

.forgot-password-form {
    text-align: left;
}

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

.forgot-password-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.forgot-password-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

/* 邮箱验证码容器 */
.email-code-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.send-code-btn {
    padding: 15px 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.send-code-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.send-code-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* 图形验证码容器 */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 100px;
    height: 50px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

/* 步骤内容 */
.step-content {
    transition: all 0.3s ease;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.forgot-password-back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
    min-width: 70px;
}

.forgot-password-back-btn:hover {
    background: #545b62;
}

.instruction-text {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #c53030;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.login-link-section {
    text-align: center;
    margin: 25px 0;
    font-size: 14px;
}

.login-link-section span {
    color: #666666;
    margin-right: 5px;
}

.login-link-section a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link-section a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 确认修改按钮 */
.forgot-password-submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
    min-width: 90px;
}

.forgot-password-submit-btn:hover {
    background: #218838;
}

.forgot-password-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.forgot-password-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-password-footer .agreement-text {
    font-size: 12px;
    color: #666666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.forgot-password-footer .agreement-text a {
    color: #007bff;
    text-decoration: none;
}

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

.forgot-password-footer .copyright-text {
    font-size: 12px;
    color: #999999;
}

.forgot-password-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666666;
}

.forgot-password-close-btn:hover {
    background: #e9ecef;
    color: #333333;
    transform: scale(1.1);
}

/* 暗色主题兼容 */
body.dark-theme .forgot-password-content {
    background: #2d3748;
    color: #ffffff;
}

body.dark-theme .forgot-password-form label {
    color: #e2e8f0;
}

body.dark-theme .forgot-password-input {
    background: #4a5568;
    border-color: #718096;
    color: #ffffff;
}

body.dark-theme .forgot-password-input:focus {
    border-color: #63b3ed;
    background: #4a5568;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

body.dark-theme .send-code-btn {
    background: #63b3ed;
    color: #ffffff;
}

body.dark-theme .send-code-btn:hover {
    background: #4299e1;
}

body.dark-theme .send-code-btn:disabled {
    background: #718096;
}

body.dark-theme .captcha-img {
    border-color: #718096;
}

body.dark-theme .instruction-text {
    background: #742a2a;
    border-color: #c53030;
    color: #fed7d7;
}

body.dark-theme .login-link-section span {
    color: #a0aec0;
}

body.dark-theme .login-link-section a {
    color: #63b3ed;
}

body.dark-theme .login-link-section a:hover {
    color: #90cdf4;
}

body.dark-theme .forgot-password-footer .agreement-text {
    color: #a0aec0;
}

body.dark-theme .forgot-password-footer .agreement-text a {
    color: #63b3ed;
}

body.dark-theme .forgot-password-footer .copyright-text {
    color: #718096;
}

body.dark-theme .forgot-password-close-btn {
    background: #4a5568;
    color: #a0aec0;
}

body.dark-theme .forgot-password-close-btn:hover {
    background: #718096;
    color: #ffffff;
}

body.dark-theme .forgot-password-back-btn {
    background: #718096;
    color: #ffffff;
}

body.dark-theme .forgot-password-back-btn:hover {
    background: #4a5568;
} 