/* ==========================================================================
   auth.css —— 会员登录 / 注册 统一深海蓝视觉（与商城 mall.css 同源）
   依赖：mall.css（由 mall/base.html 加载）。本文件只补充登录注册专属组件。
   ========================================================================== */

.auth-wrap {
    max-width: 1000px;
    margin: 40px auto 60px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* 左侧：表单 */
.auth-left {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}
.auth-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--sea-800);
    margin: 0 0 8px;
}
.auth-desc {
    font-size: 14px;
    color: var(--ink-3);
    margin-bottom: 30px;
    line-height: 1.6;
}

.auth-field { margin-bottom: 20px; }
.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.auth-input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: .16s;
    background: var(--white);
    font-family: inherit;
    color: var(--ink);
}
.auth-input:focus {
    border-color: var(--sea-500);
    box-shadow: 0 0 0 3px rgba(42,123,174,.12);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 14px;
}
.auth-remember { display: flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.auth-forgot { color: var(--sea-600); cursor: pointer; }
.auth-forgot:hover { text-decoration: underline; }

.auth-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sea-700), var(--sea-500));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s;
}
.auth-btn:hover { box-shadow: 0 10px 24px rgba(27,84,132,.32); }
.auth-btn.gold {
    background: linear-gradient(135deg, var(--gold), #B98D4E);
}

.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--ink-2);
}
.auth-switch a { color: var(--sea-600); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-tip {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.7;
}
.auth-qr-link {
    color: var(--sea-600);
    font-weight: 600;
    cursor: pointer;
}
.auth-qr-link:hover { text-decoration: underline; }

/* 右侧：品牌宣传 */
.auth-right {
    position: relative;
    padding: 48px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--sea-900), var(--sea-600));
    overflow: hidden;
}
.auth-right::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,160,99,.28), transparent 70%);
}
.auth-right .ad-title {
    position: relative;
    z-index: 2;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 18px;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.auth-right .ad-text {
    position: relative;
    z-index: 2;
    font-size: 15px;
    line-height: 1.7;
    opacity: .92;
    margin-bottom: 28px;
}
.auth-features {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    padding: 9px 15px;
    border-radius: 10px;
}
.auth-brand {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    font-size: 14px;
    opacity: .75;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-brand .logo-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--sea-800); font-weight: 800;
}

/* 二维码弹窗 */
.auth-modal-mask {
    position: fixed; inset: 0;
    background: rgba(6,38,63,.55);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
}
.auth-modal-mask.show { display: flex; }
.auth-modal {
    background: #fff;
    border-radius: 16px;
    width: 320px;
    padding: 30px 28px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-modal h3 { margin: 0 0 16px; font-size: 19px; color: var(--sea-800); }
.auth-modal .close {
    position: absolute; top: 12px; right: 14px;
    font-size: 20px; color: var(--ink-3); cursor: pointer;
}
.auth-modal .close:hover { color: var(--ink); }
.qrcode-box {
    position: relative;
    width: 200px; height: 200px;
    margin: 8px auto 14px;
}
.qrcode-box #qrcode, .qrcode-box .qr-target {
    width: 200px; height: 200px;
}
.qr-refresh {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(0,0,0,.75); color: #fff;
    border: none; cursor: pointer; font-size: 15px;
    display: none; z-index: 5;
}
.qr-status { font-size: 13px; color: var(--ink-3); }

/* 响应式 */
@media (max-width: 860px) {
    .auth-wrap { grid-template-columns: 1fr; margin: 20px 14px 40px; }
    .auth-right { display: none; }
    .auth-left { padding: 36px 28px; }
}
