@charset "utf-8";
/**
 * LRYCMS 会员认证页样式 - Fresh Teal 主题
 * 适用于: login / register / bind / reset_type / reset_email / reset_problem
 * @author           李荣耀
 * @license          http://lryper.com
 */

/* ===== CSS 变量 ===== */
:root {
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;
    --gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --bg: #f8fafc;
    --shadow: 0 20px 40px rgba(0,0,0,.12);
    --radius: 16px;
    --radius-sm: 10px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--gradient); min-height: 100vh; font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; }
table { border-collapse: collapse; }
a, img { border: 0; }
ol, ul { list-style: none; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ===== 认证容器 ===== */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }

/* ===== 认证卡片 ===== */
.auth-card { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; width: 100%; max-width: 420px; position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
.auth-card.wide { max-width: 460px; }

/* ===== 卡片头部 ===== */
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.auth-subtitle { color: var(--text-secondary); font-size: 14px; }

/* ===== 表单组 ===== */
.form-group { margin-bottom: 18px; position: relative; }

/* ===== 输入框 ===== */
.form-input { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; transition: all .25s; background: var(--card-bg); box-sizing: border-box; font-family: var(--font); color: var(--text); }
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }

/* 旧版兼容（reset 页面使用 .input 类） */
.input { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: all .25s; background: var(--card-bg); box-sizing: border-box; font-family: var(--font); outline: none; color: var(--text); }
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.input.code { width: 200px; }

/* ===== 验证码组 ===== */
.code-group { display: flex; gap: 10px; align-items: center; }
.code-input { flex: 1; }
.code-img, .codeimg { width: 120px; height: 48px; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid var(--border); transition: all .25s; object-fit: contain; }
.code-img:hover, .codeimg:hover { border-color: var(--primary); transform: scale(1.02); }

/* ===== 邮箱验证码组 ===== */
.email-group { display: flex; gap: 10px; align-items: center; }
.email-input { flex: 1; }
.send-code-btn, .btn_valid { padding: 14px 18px; background: var(--gradient); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .25s; white-space: nowrap; min-width: 130px; font-family: var(--font); }
.send-code-btn:hover:not(:disabled), .btn_valid:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,148,136,.3); }
.send-code-btn:disabled, .btn_valid:disabled { background: var(--border); cursor: not-allowed; transform: none; box-shadow: none; color: var(--text-muted); }

/* ===== 提交按钮 ===== */
.submit-btn, .submit { width: 100%; padding: 15px; background: var(--gradient); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 17px; font-weight: 600; cursor: pointer; transition: all .25s; margin-top: 8px; font-family: var(--font); }
.submit-btn:hover, .submit:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(13,148,136,.35); }
.submit { width: auto; min-width: 140px; display: inline-block; }

/* ===== 卡片底部链接 ===== */
.auth-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; transition: color .2s; font-size: 14px; }
.auth-footer a:hover { color: var(--primary-hover); text-decoration: underline; }
.forgot-password { color: var(--text-muted) !important; font-size: 13px !important; }
.forgot-password:hover { color: var(--primary) !important; }

/* ===== 固定底部版权 ===== */
.site-footer { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.12); backdrop-filter: blur(10px); color: rgba(255,255,255,.85); text-align: center; padding: 14px; font-size: 12px; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* 非固定底部（reset/bind 页用） */
.footer { width: 100%; padding: 14px 0; text-align: center; color: rgba(255,255,255,.8); font-size: 12px; }
.footer a { color: rgba(255,255,255,.9); }

/* ===== 加载动画 ===== */
.loading { display: inline-block; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 社交登录 ===== */
.social-login { margin-top: 20px; text-align: center; }
.social-btn { display: inline-block; width: 44px; height: 44px; margin: 0 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); transition: all .25s; cursor: pointer; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.social-btn img { width: 22px; height: 22px; margin: 10px; }

/* ===== 找回密码步骤页 ===== */
.w1 { width: 100%; }
.w880 { width: 880px; max-width: 100%; margin: 0 auto; }
.head { padding: 20px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.9); font-size: 14px; }
.head .right a, .head a { color: rgba(255,255,255,.9); }
.head .current { font-weight: 600; }
.main { display: flex; max-width: 880px; margin: 20px auto; background: rgba(255,255,255,.97); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.main h1 { width: 100%; padding: 24px 30px; font-size: 22px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); background: var(--bg); }
.main_left { flex: 1; padding: 30px; }
.main_right { width: 200px; flex-shrink: 0; background: var(--primary-light); padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; }
.main_right p { color: var(--text-secondary); font-size: 14px; }
.main_right .button { display: inline-block; padding: 10px 32px; background: var(--gradient); color: #fff; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; transition: all .2s; }
.main_right .button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,148,136,.3); color: #fff; }

/* 步骤指示器 */
.title { padding: 16px 0; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.title span { font-size: 13px; color: var(--text-secondary); }
.form { margin-top: 10px; }
.form ul { list-style: none; }
.form ul li { margin-bottom: 16px; text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.form ul li .red { color: var(--danger); }
.form ul li .red strong { color: var(--text); }
.form ul li b { color: var(--text); font-weight: 600; }

/* 找回方式选择 */
.reset_type { padding: 20px; margin-bottom: 16px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--text); }
.reset_type span { color: var(--primary); font-weight: 700; margin-right: 8px; font-size: 18px; }
.reset_type a { padding: 8px 20px; background: var(--gradient); color: #fff; border-radius: var(--radius-sm); text-decoration: none; font-size: 14px; transition: all .2s; }
.reset_type a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,148,136,.3); color: #fff; }

/* ===== 绑定页 ===== */
.bind_content { max-width: 760px; margin: 40px auto; background: rgba(255,255,255,.97); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.bind_content .logo { text-align: center; margin-bottom: 20px; }
.bind_content .logo a { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); }
.bind_content .logo img { height: 36px; }
.bind_content .bind { text-align: center; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 28px; }
.bind_left, .bind_right { width: 48%; display: inline-block; vertical-align: top; }
.bind_left { margin-right: 3%; }
.bind_title { padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.bind_title img { width: 24px; height: 24px; border-radius: 4px; }
.bind_body { text-align: center; padding: 20px; }
.bind_body img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.bind_body p { color: var(--text); font-weight: 500; }
.bind_form ul { list-style: none; }
.bind_form ul li { margin-bottom: 14px; }
.bind_form ul li label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.bind_form .input_mini { width: 100%; }
.bind_form .submit2 { width: 100%; }
.bind_form .aleft { text-align: left; font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .auth-card { padding: 30px 20px; }
    .auth-title { font-size: 22px; }
    .code-group, .email-group { flex-direction: column; gap: 10px; }
    .code-img, .codeimg { width: 100%; height: auto; min-height: 48px; }
    .send-code-btn, .btn_valid { width: 100%; }
    .auth-footer { flex-direction: column; text-align: center; }
    .main { flex-direction: column; }
    .main_right { width: 100%; padding: 20px; }
    .bind_left, .bind_right { width: 100%; display: block; margin: 0 0 20px; }
}
