/* 认证页面统一样式 */

/* 页面整体布局 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* 认证容器 */
.auth-container {
    max-width: 420px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6633, #ff8a50);
}

/* 标题样式 */
.auth-title {
    text-align: center;
    margin-bottom: 35px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FF6633, #ff8a50);
    border-radius: 2px;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* 输入框样式 */
.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-control:focus {
    border-color: #FF6633;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 102, 51, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

/* 验证码组合样式 */
.code-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.code-group .form-control {
    flex: 1;
}

.code-btn {
    min-width: 130px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.code-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

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

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6633, #ff8a50);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e6743d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 51, 0.4);
}

.btn:active {
    transform: translateY(0);
}

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

.btn:disabled::before {
    display: none;
}

/* 链接样式 */
.auth-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.auth-links a {
    color: #FF6633;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6633;
    transition: width 0.3s ease;
}

.auth-links a:hover::after {
    width: 100%;
}

.auth-links a:hover {
    color: #e55a2b;
}

/* 返回首页链接 */
.back-home {
    text-align: center;
    margin-bottom: 25px;
}

.back-home a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-home a:hover {
    color: #FF6633;
}

/* 忘记密码链接 */
.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #FF6633;
}

/* 步骤指示器 */
.step-indicator {
    text-align: center;
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 14px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF6633;
}

.step-indicator .current {
    color: #FF6633;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .auth-container {
        margin: 20px auto;
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .code-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .code-btn {
        min-width: auto;
        width: 100%;
    }
    
    .auth-links a {
        display: block;
        margin: 10px 0;
    }
}

/* 加载动画 */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 错误状态 */
.form-control.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* 成功状态 */
.form-control.success {
    border-color: #28a745;
    background: #f8fff9;
}

.form-control.success:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* 提示信息 */
.form-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.form-hint.error {
    color: #dc3545;
}

.form-hint.success {
    color: #28a745;
}
