/* ============================================================
 * 欧浪网登录 / 注册 v2 — 卡片式单页双 tab
 * 桌面：居中卡片 max-width 440px
 * 手机：单栏满宽，左右 padding 16px
 * ============================================================ */

.auth2-area {
    width: 1000px;             /* 與 header / nav-tabs / footer 寬度對齊 */
    max-width: 100%;           /* 視窗 <1000px 時自動縮 */
    margin: 0 auto;            /* 桌面置中 */
    min-height: calc(100vh - 200px);
    background: #F5F7FA;
    padding: 32px 16px 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Flash 提示 */
.auth2-flash {
    width: 100%; max-width: 760px;
    margin: 0 auto 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}
.auth2-flash-ok   { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }
.auth2-flash-info { background: #FEF3C7; border: 1px solid #FDE68A; color: #92400E; }

/* shell — 宽卡片 760px */
.auth2-shell {
    width: 100%; max-width: 760px;
}

/* ===== 顶部 brand 区 ===== */
.auth2-top {
    position: relative;
    margin-bottom: 18px;
    padding-top: 4px;
}
.auth2-back {
    position: absolute;
    left: -4px; top: 4px;
    display: inline-flex; align-items: center; gap: 4px;
    color: #6B7280;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 10px 6px 4px;
    border-radius: 4px;
}
.auth2-back:hover { color: #1F4E79; background: rgba(31, 78, 121, .06); }
.auth2-back svg { width: 16px; height: 16px; }
.auth2-brand {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding-top: 8px;
}
.auth2-brand-mark {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1F4E79 100%);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(31, 78, 121, .25);
}
.auth2-brand-mark svg { width: 26px; height: 26px; }
.auth2-brand-text { text-align: center; }
.auth2-brand-name {
    color: #1F4E79;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
}
.auth2-brand-sub {
    color: #94A3B8;
    font-size: 11.5px;
    margin-top: 4px;
    letter-spacing: .3px;
    font-family: Tahoma, Arial;
}

/* ===== 卡片 ===== */
.auth2-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 44px 32px 36px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
    box-sizing: border-box;
}
/* 内层：内容居中，最大宽度约 480px，避免输入框被拉太长 */
.auth2-card-inner {
    max-width: 480px;
    margin: 0 auto;
}

.auth2-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    letter-spacing: .2px;
}
.auth2-sub {
    margin: 0 0 22px;
    font-size: 13px;
    color: #6B7280;
    text-align: center;
    line-height: 1.6;
}

/* ===== Tabs ===== */
.auth2-tabs {
    display: flex;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.auth2-tab {
    flex: 1;
    height: 38px;
    border: 0;
    background: transparent;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    letter-spacing: .3px;
    transition: background .15s, color .15s, box-shadow .15s;
}
.auth2-tab:hover { color: #1F4E79; }
.auth2-tab.is-active {
    background: #fff;
    color: #1F4E79;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

/* ===== 表单 pane（默认隐藏，仅 is-shown 显示） ===== */
.auth2-form {
    display: none;
}
.auth2-form.is-shown {
    display: block;
}

/* 行 */
.auth2-row {
    margin-bottom: 16px;
}
.auth2-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.auth2-label-hint {
    font-weight: 400;
    color: #9CA3AF;
    font-size: 11.5px;
    margin-left: 4px;
}
.auth2-req { color: #DC2626; margin-left: 2px; }
.auth2-hint {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: #9CA3AF;
}
.auth2-err {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #DC2626;
    line-height: 1.4;
}

/* 输入框 */
.auth2-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.auth2-input::placeholder { color: #9CA3AF; }
.auth2-input:focus {
    outline: 0;
    border-color: #1F4E79;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, .12);
}

/* 密码眼睛 */
.auth2-pwd-wrap {
    position: relative;
}
.auth2-pwd-wrap .auth2-input {
    padding-right: 44px;
}
.auth2-pwd-toggle {
    position: absolute;
    right: 4px; top: 4px;
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.auth2-pwd-toggle:hover { color: #1F4E79; background: rgba(31, 78, 121, .06); }
.auth2-pwd-toggle svg { width: 18px; height: 18px; display: block; }
/* 优先级覆盖：被全局 svg display 规则压住时也能正确隐藏 */
.auth2-pwd-toggle svg[hidden] { display: none !important; }

/* meta 行：记住我 + 忘记密码 */
.auth2-meta-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: -4px 0 18px;
    font-size: 13px;
}
.auth2-checkbox {
    display: inline-flex; align-items: center; gap: 6px;
    color: #4B5563;
    cursor: pointer;
}
.auth2-checkbox input[type="checkbox"] {
    width: 14px; height: 14px;
    accent-color: #1F4E79;
    cursor: pointer;
}
.auth2-link {
    color: #1F4E79;
    text-decoration: none;
    font-size: 13px;
}
.auth2-link:hover { text-decoration: underline; }

/* terms */
.auth2-terms {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 4px 0 16px;
    font-size: 12.5px;
    color: #4B5563;
    line-height: 1.6;
    cursor: pointer;
}
.auth2-terms input[type="checkbox"] {
    width: 15px; height: 15px;
    margin-top: 2px;
    accent-color: #1F4E79;
    flex: 0 0 auto;
    cursor: pointer;
}
.auth2-terms span { flex: 1; }

/* 主按钮 */
.auth2-btn {
    display: block;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #1F4E79;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .15s, transform .08s;
}
.auth2-btn:hover { background: #163D61; }
.auth2-btn:active { transform: translateY(1px); }
.auth2-btn.is-gold {
    background: linear-gradient(135deg, #F28C28 0%, #D87617 100%);
    box-shadow: 0 2px 8px rgba(242, 140, 40, .3);
}
.auth2-btn.is-gold:hover { background: #D87617; }

/* footnote */
.auth2-footnote {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}
.auth2-link-btn {
    background: 0;
    border: 0;
    padding: 0;
    color: #1F4E79;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.auth2-link-btn:hover { text-decoration: underline; }

/* 卡片底部说明 */
.auth2-blurb {
    margin: 20px auto 0;
    text-align: center;
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.7;
    max-width: 760px;
}

/* 黄金流程：卡片金色顶 */
.auth2-card.is-gold-flow {
    border-top: 3px solid #F28C28;
}

/* ===== 手机版 ===== */
@media (max-width: 540px) {
    .auth2-area { padding: 20px 16px 32px; }
    .auth2-card { padding: 28px 18px 22px; border-radius: 8px; }
    .auth2-title { font-size: 19px; }
    .auth2-sub { margin-bottom: 18px; }
    .auth2-tab { height: 40px; font-size: 14px; }
    .auth2-input { height: 46px; font-size: 15px; }
    .auth2-btn { height: 48px; font-size: 15px; }
}

/* ============================================================
 * 第三方登录入口（仅登录表单）
 * ============================================================ */
.social-login {
    margin-top: 20px;
}

/* 分隔线 + 中间文字 */
.social-login-divider {
    position: relative;
    text-align: center;
    margin-bottom: 14px;
}
.social-login-divider::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: #E5E7EB;
}
.social-login-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #ffffff;
    font-size: 12px;
    color: #9CA3AF;
    letter-spacing: .3px;
}

/* 按钮组：桌面左右并排，手机自动堆叠 */
.social-login-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.social-login-btn svg {
    width: 20px; height: 20px;
    flex: 0 0 auto;
    display: block;
}
.social-login-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

/* WeChat — 绿色 icon */
.social-login-btn.wechat-login svg { color: #07C160; }
.social-login-btn.wechat-login:hover { border-color: #07C160; color: #07C160; }

/* QQ — 蓝色 icon */
.social-login-btn.qq-login svg { color: #12B7F5; }
.social-login-btn.qq-login:hover { border-color: #12B7F5; color: #12B7F5; }

/* 手机版 — 仍保持两列（按用户要求宽度够就并排），过窄才堆叠 */
@media (max-width: 360px) {
    .social-login-buttons { grid-template-columns: 1fr; }
}

/* 注册表单底部：忘记密码 + 直接登录 同一行 */
.auth2-footnote.auth2-footnote-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.auth2-footnote-sep { color: #C9D2DC; }
