/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* 登录容器 */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* 标题 */
.auth-title {
    text-align: center;
    margin-bottom: 28px;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

/* 表单行 */
.form-row {
    margin-bottom: 20px;
}

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

.form-row input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-row input:focus {
    border-color: #4dabf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

/* 错误提示 */
.alert-error {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: #fff5f5;
    color: #fa5252;
    border-radius: 6px;
    border-left: 3px solid #fa5252;
    font-size: 14px;
}

.alert-error .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: #fa5252;
}

/* 按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #4dabf7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #339af0;
}

/* 加载动画 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    opacity: 0;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .loading-spinner {
    opacity: 1;
}

/* 底部链接 */
.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    font-size: 14px;
}

.auth-link {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #228be6;
    text-decoration: underline;
}

.link-divider {
    margin: 0 12px;
    color: #adb5bd;
}
/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

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

.step {
    position: relative;
    z-index: 2;
    background: white;
    padding: 5px 10px;
    font-size: 13px;
    color: #adb5bd;
}

.step.active {
    color: #4dabf7;
    font-weight: 500;
}

.step.active::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4dabf7;
    z-index: 3;
}

/* 副标题 */
.auth-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* 成功提示 */
.alert-success {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 6px;
    border-left: 3px solid #16a34a;
    font-size: 14px;
}

.alert-success .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: #16a34a;
}
/* 信息提示框 */
.alert-info {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 6px;
    border-left: 3px solid #0369a1;
    font-size: 14px;
}

.alert-info .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: #0369a1;
}

/* 密码强度提示 */
.password-strength {
    margin-top: 5px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.strength-weak { background: #ef4444; width: 30%; }
.strength-medium { background: #f59e0b; width: 60%; }
.strength-strong { background: #10b981; width: 100%; }
/* 新增密码找回页面专用样式 */
.forgot-container {
    max-width: 450px;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.forgot-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.forgot-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* 保持与注册页相同的按钮样式 */
.btn-forgot {
    width: 100%;
    padding: 14px;
    background: #4dabf7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-forgot:hover {
    background: #339af0;
}
/* 表单提交按钮状态 */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .loading-spinner {
    opacity: 1;
}


/* 错误提示 */
input:invalid {
    border-color: #fa5252;
}

input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(250, 82, 82, 0.2);
}