/**
 * FSCMS 新版会员中心认证页面样式
 * Modern Member Center Auth Pages CSS
 * 包含登录、注册、密码找回页面样式
 */

/* ==================== CSS变量定义 ==================== */
:root {
    --fscms-primary: #1a4b60;
    --fscms-primary-light: #175c7a;
    --fscms-secondary: #ffd700;
    --fscms-gray-100: #f8f9fa;
    --fscms-gray-200: #e9ecef;
    --fscms-gray-400: #ced4da;
    --fscms-gray-500: #adb5bd;
    --fscms-gray-600: #6c757d;
    --fscms-gray-700: #495057;
    --fscms-radius: 8px;
    --fscms-radius-lg: 12px;
    --fscms-shadow: 0 2px 10px rgba(26, 75, 96, 0.1);
    --fscms-shadow-lg: 0 4px 20px rgba(26, 75, 96, 0.15);
    --fscms-shadow-primary: 0 4px 15px rgba(26, 75, 96, 0.3);
    --fscms-transition: all 0.3s ease;
}

/* ==================== 认证页面包装器 ==================== */
.fscms-member-auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 40px 20px;
}

/* ==================== 认证页面基础布局 ==================== */
.fscms-auth-page {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fscms-auth-box {
    width: 100%;
    max-width: 420px !important;
    background: white;
    border-radius: var(--fscms-radius-lg);
    box-shadow: var(--fscms-shadow-lg);
    overflow: hidden;
    margin: 0 auto;
}

/* ==================== 认证页面头部 ==================== */
.fscms-auth-header {
    background: linear-gradient(135deg, var(--fscms-primary) 0%, var(--fscms-primary-light) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.fscms-auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fscms-auth-header p {
    opacity: 0.9;
    font-size: 14px;
}

/* ==================== 认证页面主体 ==================== */
.fscms-auth-body {
    padding: 30px;
}

/* ==================== 标签页切换 ==================== */
.fscms-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--fscms-gray-200);
    padding-bottom: 2px;
}

.fscms-auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    color: var(--fscms-gray-600);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--fscms-transition);
}

.fscms-auth-tab.active {
    color: var(--fscms-primary);
}

.fscms-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fscms-primary);
}

/* ==================== 表单样式 ==================== */
.fscms-auth-form {
    display: none;
}

.fscms-auth-form.active {
    display: block;
}

.fscms-form-group {
    margin-bottom: 12px;
}

.fscms-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fscms-gray-700);
}

.fscms-form-group input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 2px solid var(--fscms-gray-200);
    border-radius: var(--fscms-radius);
    font-size: 14px;
    transition: var(--fscms-transition);
}

.fscms-form-group input:focus {
    outline: none;
    border-color: var(--fscms-primary);
}

/* 带图标的输入框 */
.fscms-input-with-icon {
    position: relative;
}

.fscms-input-with-icon input {
    padding-left: 44px;
}

.fscms-input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fscms-gray-400);
}

/* 验证码行 */
.fscms-code-row {
    display: flex;
    gap: 12px;
}

.fscms-code-row input {
    flex: 1;
}

.fscms-code-row button {
    flex: 0 0 120px;
    height: 44px;
    background: var(--fscms-primary);
    color: white;
    border: none;
    border-radius: var(--fscms-radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--fscms-transition);
}

.fscms-code-row button:disabled {
    background: var(--fscms-gray-400);
    cursor: not-allowed;
}

/* ==================== 表单选项 ==================== */
.fscms-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.fscms-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fscms-gray-600);
    cursor: pointer;
}

.fscms-remember input {
    width: 16px;
    height: 16px;
}

.fscms-forgot-link {
    color: var(--fscms-primary);
    text-decoration: none;
}

.fscms-forgot-link:hover {
    text-decoration: underline;
}

/* ==================== 登录提示信息 ==================== */
.fscms-login-tips {
    font-size: 12px;
    color: var(--fscms-gray-500);
    margin-bottom: 12px;
    text-align: center;
}

.fscms-login-tips i {
    color: var(--fscms-primary);
    margin-right: 4px;
}

/* ==================== 协议勾选框 ==================== */
.fscms-agree-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--fscms-gray-600);
}

.fscms-agree-box input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.fscms-agree-box a {
    color: var(--fscms-primary);
    text-decoration: none;
}

.fscms-agree-box a:hover {
    text-decoration: underline;
}

/* ==================== 按钮样式 ==================== */
.fscms-btn-login,
.fscms-btn-register,
.fscms-btn-reset {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--fscms-primary) 0%, var(--fscms-primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--fscms-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fscms-transition);
}

.fscms-btn-login:hover,
.fscms-btn-register:hover,
.fscms-btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: var(--fscms-shadow-primary);
}

.fscms-btn-login:disabled,
.fscms-btn-register:disabled,
.fscms-btn-reset:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fscms-btn-reset {
    margin-top: 8px;
}

/* ==================== 提示信息 ==================== */
.fscms-alert {
    padding: 12px 16px;
    border-radius: var(--fscms-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.fscms-alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.fscms-alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ==================== 第三方登录 ==================== */
.fscms-third-login {
    margin-top: 16px;
    text-align: center;
}

.fscms-third-login-title {
    position: relative;
    margin-bottom: 16px;
    color: var(--fscms-gray-500);
    font-size: 13px;
}

.fscms-third-login-title::before,
.fscms-third-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--fscms-gray-200);
}

.fscms-third-login-title::before {
    left: 0;
}

.fscms-third-login-title::after {
    right: 0;
}

.fscms-third-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.fscms-third-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: var(--fscms-transition);
}

.fscms-third-icon:hover {
    transform: scale(1.1);
    color: white;
}

.fscms-third-icon.qq { background: #12b7f5; }
.fscms-third-icon.qq:hover { background: #12b7f5; }
.fscms-third-icon.wechat { background: #07c160; }
.fscms-third-icon.wechat:hover { background: #07c160; }
.fscms-third-icon.weibo { background: #e6162d; }
.fscms-third-icon.weibo:hover { background: #e6162d; }
.fscms-third-icon.alipay { background: #1677ff; }
.fscms-third-icon.alipay:hover { background: #1677ff; }

/* ==================== 页面底部 ==================== */
.fscms-auth-footer {
    text-align: center;
    padding: 12px 30px;
    border-top: 1px solid var(--fscms-gray-100);
}

.fscms-auth-footer p {
    color: var(--fscms-gray-600);
    font-size: 14px;
}

.fscms-auth-footer a {
    color: var(--fscms-primary);
    font-weight: 500;
    text-decoration: none;
}

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

/* ==================== 密码强度检测 ==================== */
.fscms-password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fscms-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--fscms-gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.fscms-strength-level {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.fscms-strength-level.weak {
    background: #dc3545;
}

.fscms-strength-level.medium {
    background: #ffc107;
}

.fscms-strength-level.strong {
    background: #28a745;
}

.fscms-strength-text {
    font-size: 12px;
    color: var(--fscms-gray-600);
    white-space: nowrap;
}

.fscms-strength-text.weak {
    color: #dc3545;
}

.fscms-strength-text.medium {
    color: #ffc107;
}

.fscms-strength-text.strong {
    color: #28a745;
}

/* ==================== 密码一致性检测 ==================== */
.fscms-password-match {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fscms-password-match.match {
    color: #28a745;
}

.fscms-password-match.mismatch {
    color: #dc3545;
}

.fscms-password-match i {
    font-size: 14px;
}

/* ==================== 用户名检测提示 ==================== */
.fscms-username-check {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fscms-username-check.success {
    color: #28a745;
}

.fscms-username-check.error {
    color: #dc3545;
}

.fscms-username-check.checking {
    color: var(--fscms-gray-600);
}

.fscms-username-check i {
    font-size: 14px;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 767px) {
    .fscms-member-auth-wrapper {
        min-height: auto;
        padding: 20px 16px;
        align-items: flex-start;
    }
    
    .fscms-auth-box {
        max-width: 100%;
        border-radius: var(--fscms-radius-lg);
        box-shadow: var(--fscms-shadow);
    }
    
    .fscms-auth-header {
        padding: 24px 20px;
    }
    
    .fscms-auth-header h1 {
        font-size: 20px;
    }
    
    .fscms-auth-body {
        padding: 20px;
    }
    
    .fscms-auth-tabs {
        margin-bottom: 12px;
    }
    
    .fscms-auth-tab {
        padding: 10px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fscms-member-auth-wrapper {
        padding: 12px;
    }
    
    .fscms-auth-header {
        padding: 20px 16px;
    }
    
    .fscms-auth-header h1 {
        font-size: 18px;
    }
    
    .fscms-auth-body {
        padding: 16px;
    }
}
