/* ==========================================================
   会员登录 / 注册
   ========================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    background: #eef2f5;
    color: #333;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
}
a { text-decoration: none; }

/* 页面 */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef2f5 100%);
}

/* 卡片 */
.auth-card {
    width: 420px;
    max-width: 100%;
    padding: 36px 36px 30px;
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .06);
}
.auth-logo { display: block; margin-bottom: 22px; color: #333; font-size: 26px; font-weight: 700; }
.auth-logo:hover { color: #1ab394; }
.auth-card h1 { margin: 0 0 6px; color: #333; font-size: 20px; font-weight: 700; }
.auth-sub { margin: 0 0 24px; color: #666; font-size: 13px; }

/* 表单 */
.auth-field { margin-bottom: 16px; }
.auth-field > label { display: block; margin-bottom: 6px; color: #666; font-size: 13px; }
.auth-input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 2px;
    color: #333;
    font-size: 14px;
    outline: none;
}
.auth-input:focus { border-color: #1ab394; }
.auth-captcha { display: flex; align-items: center; gap: 10px; }
.auth-captcha .auth-input { flex: 1; }
.auth-captcha img { width: 110px; height: 40px; border: 1px solid #e7eaec; border-radius: 2px; cursor: pointer; }
.auth-check { display: flex; align-items: center; gap: 6px; margin: 4px 0 18px; color: #666; font-size: 13px; cursor: pointer; }
.auth-check input { margin: 0; }

/* 按钮与链接 */
.auth-btn {
    display: block;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 2px;
    background: #1ab394;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.auth-btn:hover { background: #169d82; }
.auth-links { margin-top: 18px; color: #666; font-size: 13px; line-height: 2; text-align: center; }
.auth-links a { color: #1ab394; }
.auth-links a:hover { color: #169d82; }
.auth-copy { margin-top: 22px; color: #999; font-size: 12px; }

/* 验证码按钮 / 提示 */
.auth-code { display: flex; gap: 10px; }
.auth-code .auth-input { flex: 1; }
.auth-send {
    flex: none;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #1ab394;
    border-radius: 2px;
    color: #1ab394;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}
.auth-send:hover { background: #e8f8f4; }
.auth-send:disabled { border-color: #e7eaec; color: #999; cursor: not-allowed; }
.auth-tips { display: none; margin-bottom: 14px; padding: 9px 12px; border-radius: 2px; font-size: 13px; }

/* ---------- 左右分栏 ---------- */
.auth-split { display: flex; min-height: 100vh; background: #f7f9fb; }
.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 52%;
    padding: 56px 64px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2b5b 0%, #145e7a 55%, #1ab394 100%);
    color: #fff;
}
.auth-visual::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.auth-visual::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.auth-visual-logo { position: relative; z-index: 1; display: block; color: #fff; font-size: 24px; font-weight: 700; }
.auth-visual-img { position: relative; z-index: 1; align-self: center; width: 300px; margin: 24px 0 20px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18)); }
.auth-visual h2 { position: relative; z-index: 1; margin: 0 0 10px; color: #fff; font-size: 28px; font-weight: 700; }
.auth-visual p { position: relative; z-index: 1; margin: 0 0 24px; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.8; }
.auth-visual-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.auth-visual-list li { position: relative; margin-bottom: 10px; padding-left: 22px; color: rgba(255, 255, 255, .9); font-size: 14px; }
.auth-visual-list li::before { content: "✓"; position: absolute; left: 0; color: #7ce0c9; font-weight: 700; }
.auth-visual-copy { position: relative; z-index: 1; margin-top: 40px; color: rgba(255, 255, 255, .45); font-size: 12px; }

.auth-form-side { display: flex; flex: 1; align-items: center; justify-content: center; padding: 40px; background: #f7f9fb; }
.auth-form-side .auth-card { width: 400px; max-width: 100%; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }

/* 分栏右侧不再重复品牌 */
.auth-form-side .auth-logo { display: none; }

/* 窄屏只保留表单 */
@media (max-width: 900px) {
    .auth-visual { display: none; }
    .auth-form-side { padding: 24px; }
}
