/**
 * 忘记密码页面样式
 * 基于现代化设计规范
 */

/* ========== 页面容器 ========== */
.login-container {
    min-height: calc(100vh - 70px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ========== 卡片样式 ========== */
.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 45px;
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

/* 卡片顶部装饰条 */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1890ff 0%, #52c41a 50%, #faad14 100%);
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ========== 页面标题 ========== */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: #262626;
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-header h1 i {
    color: #1890ff;
    font-size: 28px;
}

.login-header p {
    color: #8c8c8c;
    margin: 0;
    font-size: 14px;
}

/* ========== 步骤指示器 ========== */
.steps {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step.active {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.step.inactive {
    background: #f5f5f5;
    color: #bfbfbf;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #262626;
    font-weight: 500;
    font-size: 14px;
}

/* ========== 输入框组 ========== */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #bfbfbf;
    font-size: 14px;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-group input {
    padding-left: 40px;
}

.input-group input:focus + i,
.input-group:focus-within i {
    color: #1890ff;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* ========== 验证码输入组 ========== */
.code-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.code-input {
    flex: 1;
    min-width: 0;
}

.code-input .input-group {
    height: 100%;
}

.code-input .form-control {
    height: 100%;
}

/* 发送验证码按钮 */
.code-group .send-btn.btn {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: transparent !important;
    border: 2px solid #f0f0f0 !important;
    color: #8c8c8c !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 12px !important;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0 !important;
    box-shadow: none !important;
    font-weight: normal !important;
}

.code-group .send-btn.btn:hover {
    background: #1890ff !important;
    border-color: #1890ff !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: none !important;
}

.code-group .send-btn.btn:active {
    transform: scale(0.95) !important;
}

.code-group .send-btn.btn:disabled {
    background: transparent !important;
    border-color: #d9d9d9 !important;
    color: #bfbfbf !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.code-group .send-btn.btn i {
    margin: 0 !important;
}

/* ========== 提示文本 ========== */
.text-muted {
    color: #8c8c8c;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* ========== 提示消息 ========== */
.alert {
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 16px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary i {
    margin-right: 6px;
}

.btn-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.2);
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-success:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82, 196, 26, 0.3);
    color: white;
}

.btn-success:active {
    transform: translateY(0);
}

.btn-success i {
    margin-right: 6px;
}

/* ========== 邮箱显示框 ========== */
.email-display {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 8px;
    color: #262626;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-display i {
    color: #1890ff;
}

/* ========== 密码强度提示 ========== */
.password-strength {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* ========== 成功页面 ========== */
.success-container {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 56px;
    color: #52c41a;
    margin-bottom: 24px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message {
    font-size: 18px;
    color: #262626;
    margin-bottom: 30px;
    font-weight: 500;
}

.success-container .btn-primary {
    width: auto;
    padding: 12px 32px;
    display: inline-flex;
}

/* ========== 底部链接 ========== */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    margin: 0;
    color: #8c8c8c;
    font-size: 14px;
}

.login-footer a {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* ========== 响应式设计 ========== */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .steps {
        gap: 4px;
    }
    
    .step {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .code-group {
        flex-direction: row;
    }
    
    .code-group .send-btn.btn {
        width: auto !important;
        height: auto !important;
        min-width: auto !important;
        max-width: none !important;
        padding: 12px !important;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        align-self: stretch;
    }
}

/* ========== 输入框状态样式 ========== */
.form-control[style*="border-color: rgb(40, 167, 69)"],
.form-control[style*="border-color: #28a745"] {
    border-color: #28a745 !important;
}

.form-control[style*="border-color: rgb(220, 53, 69)"],
.form-control[style*="border-color: #dc3545"] {
    border-color: #dc3545 !important;
}

.form-control[style*="border-color: rgb(255, 193, 7)"],
.form-control[style*="border-color: #ffc107"] {
    border-color: #ffc107 !important;
}
