/* ==========================================================================
   登录 / 新设备验证 页共用样式
   两个页面结构一致：左侧品牌介绍 + 右侧表单卡片
   （依赖全局 style.css 的 .form-group / .form-label / .form-input / .btn 等基础类）
   ========================================================================== */

/* 整页淡蓝渐变背景（fixed 铺满；导航与页脚自带底色，不受影响） */
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    /* 多层柔和色斑叠加，模拟原型图的云雾状淡蓝背景：
       右上大块浅蓝 → 中部色带 → 左侧云斑 → 底部淡蓝 → 白色亮部提层次 */
    background:
        radial-gradient(1100px 520px at 84% 12%, rgba(176, 207, 250, 0.85), transparent 62%),
        radial-gradient(880px 440px at 66% 32%, rgba(198, 221, 252, 0.70), transparent 66%),
        radial-gradient(1000px 460px at 98% 50%, rgba(188, 214, 250, 0.62), transparent 64%),
        radial-gradient(780px 540px at 0% 34%, rgba(204, 225, 253, 0.78), transparent 64%),
        radial-gradient(680px 420px at 14% 70%, rgba(214, 232, 253, 0.62), transparent 66%),
        radial-gradient(1100px 480px at 28% 102%, rgba(194, 219, 251, 0.72), transparent 68%),
        /* 白色亮部 */
        radial-gradient(900px 520px at 46% 24%, rgba(255, 255, 255, 0.95), transparent 62%),
        radial-gradient(720px 440px at 6% 90%, rgba(255, 255, 255, 0.80), transparent 68%),
        linear-gradient(165deg, #F7FBFF 0%, #EFF6FE 48%, #F5FAFF 100%);
}

/* 顶部导航栏：透明，让页面淡蓝渐变透出来；仅保留一条若隐若现的分隔线。
   用 :has() 限定，只影响含 .auth-page 的页面（登录 / 新设备验证），其他页面导航栏保持白底。
   注意：style.css 移动端的 .navbar 带 !important（毛玻璃白底），这里必须同样用 !important 才能覆盖。 */
body:has(.auth-page) .navbar {
    background: transparent !important;
    border-bottom: 1px solid rgba(100, 130, 200, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.auth-page {
    display: grid;
    /* 右侧卡片加宽到 430px，贴合原型图比例 */
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 48px;
    align-items: center;
    padding: 56px 0 64px;
    min-height: calc(100vh - 180px);
}

/* ---------- 左侧品牌区 ---------- */
.auth-intro { position: relative; }
.auth-intro-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.6px;
    color: #161B24;
    margin: 0 0 16px;
}
.auth-intro-title span { color: #2563EB; }
.auth-intro-sub {
    font-size: 16px;
    color: #7A8699;
    margin: 0 0 38px;
}
.auth-intro-feats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    /* 限宽：给右侧插画留出空间，避免文字与插画重叠 */
    max-width: 288px;
}
/* 图标与两行文字垂直居中（原型图即如此，非顶部对齐） */
.auth-intro-feats li { display: flex; align-items: center; gap: 12px; }
/* 正圆浅蓝底图标 + 蓝色图标（原型图为圆形、无描边） */
.feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #2F6BE4;
    background: #E7F0FE;
    border: none;
    flex-shrink: 0;
}
.auth-intro-feats strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    color: #161B24;
    margin-bottom: 3px;
}
.auth-intro-feats div > span {
    font-size: 12.5px;
    color: #8A94A6;
    line-height: 1.5;
}

/* ============ 3D 风格插画（纯 CSS 绘制，还原原型图） ============ */
.auth-illustration {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 300px;
    pointer-events: none;
}

/* 底部柔光 */
.illu-glow {
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 320px;
    height: 160px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 62%, rgba(126, 176, 255, 0.52), rgba(126, 176, 255, 0) 68%);
    filter: blur(6px);
}

/* 多边形发光底座 */
.illu-platform {
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 250px;
    height: 80px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(222, 237, 255, 0.98) 0%, rgba(174, 206, 249, 0.90) 100%);
    clip-path: polygon(50% 0%, 100% 27%, 100% 73%, 50% 100%, 0% 73%, 0% 27%);
    box-shadow: 0 20px 44px rgba(96, 142, 220, 0.35);
}

/* 笔记本电脑 */
.illu-laptop {
    position: absolute;
    left: 50%;
    top: 92px;
    transform: translateX(-50%) perspective(760px) rotateX(8deg);
}
.illu-screen {
    display: block;
    width: 142px;
    height: 92px;
    margin: 0 auto;
    border-radius: 10px 10px 4px 4px;
    background: #FFFFFF;
    border: 4px solid #FFFFFF;
    box-shadow: 0 12px 28px rgba(74, 116, 190, 0.28);
    overflow: hidden;
}
.illu-ui {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(155deg, #FFFFFF 0%, #EFF5FF 100%);
}
/* 屏幕左侧蓝色导航条 */
.illu-ui::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    background: linear-gradient(180deg, #5B8DEF 0%, #7C6BF0 100%);
}
/* 屏幕内的白色内容卡 */
.illu-ui::after {
    content: '';
    position: absolute;
    left: 36px;
    right: 10px;
    top: 12px;
    height: 44px;
    border-radius: 5px;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(74, 116, 190, 0.14);
}
.illu-base {
    display: block;
    width: 172px;
    height: 13px;
    margin: -2px auto 0;
    border-radius: 3px 3px 12px 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, #D8E4F6 100%);
    box-shadow: 0 14px 26px rgba(74, 116, 190, 0.26);
}

/* 云朵 */
.illu-cloud {
    position: absolute;
    left: 176px;
    top: 44px;
    width: 96px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFFFFF 0%, #D9E7FB 100%);
    box-shadow: 0 12px 26px rgba(74, 116, 190, 0.20);
}
.illu-cloud::before,
.illu-cloud::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFFFFF 0%, #E4EEFD 100%);
}
.illu-cloud::before { width: 46px; height: 46px; left: 10px; top: -22px; }
.illu-cloud::after  { width: 34px; height: 34px; right: 12px; top: -14px; }

/* 蓝色小方块（app 图标） */
.illu-app {
    position: absolute;
    left: 264px;
    top: 36px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(150deg, #7FB0FF 0%, #4F7FF0 100%);
    box-shadow: 0 10px 20px rgba(74, 116, 190, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* 地球 */
.illu-globe {
    position: absolute;
    left: 40px;
    top: 136px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #CBE3FF 0%, #6BA4F7 44%, #2F6BD8 100%);
    box-shadow: inset -5px -7px 14px rgba(22, 62, 140, 0.35), 0 12px 24px rgba(74, 116, 190, 0.26);
}
.illu-globe::after {
    content: '';
    position: absolute;
    inset: 7px 13px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: transparent;
    border-bottom-color: transparent;
}

/* 盾牌 */
.illu-shield {
    position: absolute;
    left: 214px;
    top: 162px;
    font-size: 46px;
    color: #4F8DF7;
    filter: drop-shadow(0 12px 22px rgba(74, 116, 190, 0.32));
}
.illu-shield .iconify { display: block; }

/* ---------- 右侧卡片 ---------- */
.auth-card {
    position: relative;
    overflow: hidden;              /* 让右上角装饰块被圆角裁切 */
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 38px 36px 32px;
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
}
/* 右上角不规则淡蓝色块（原型图的装饰点缀）：用单向超大圆角做出弧形边缘 */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 112px;
    background: linear-gradient(215deg, rgba(183, 210, 250, 0.92) 0%, rgba(183, 210, 250, 0.30) 58%, rgba(183, 210, 250, 0) 100%);
    border-bottom-left-radius: 78% 100%;
    pointer-events: none;
}
/* 卡片内容压在装饰层之上 */
.auth-card > * { position: relative; z-index: 1; }

/* 标题与副标题统一左对齐（左上角），避免受外层居中样式影响 */
.auth-card-head { margin-bottom: 22px; text-align: left; }
.auth-card-head h2 {
    font-size: 24px;
    font-weight: 800;
    color: #141922;
    margin: 0 0 6px;
}
.auth-card-head p {
    font-size: 13px;
    color: #98A2B3;
    margin: 0;
}

/* ---------- 表单元素：覆盖全局样式，贴合原型图 ---------- */
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-label {
    font-size: 13.5px;
    font-weight: 500;        /* 全局是 600，原型图为常规字重 */
    color: #2B3240;
    margin-bottom: 7px;
}
.auth-card .form-input {
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #E4E8EF;   /* 全局 1.5px 偏粗 */
    border-radius: 9px;
    background: #FFFFFF;
    color: #1E293B;
}
.auth-card .form-input::placeholder { color: #AEB7C6; }
.auth-card .form-input:focus {
    border-color: #7FA8F5;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.auth-card .form-hint {
    font-size: 11.5px;
    color: #9AA4B4;
    margin-top: 6px;
}

/* 带图标的输入框 */
.input-icon { position: relative; }
.input-icon > .iconify {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9AA6B6;
    pointer-events: none;
}
.input-icon .form-input { padding-left: 40px; padding-right: 42px; }
.input-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #9AA6B6;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.input-eye:hover { color: #2563EB; }
.input-eye .eye-hide { display: none; }
.input-eye.is-visible .eye-show { display: none; }
.input-eye.is-visible .eye-hide { display: inline-flex; }

/* 图形验证码一行（登录页） */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .form-input { flex: 1; min-width: 0; }
.captcha-row img {
    width: 108px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    cursor: pointer;
    flex-shrink: 0;
}

/* 邮箱验证码一行（新设备验证页） */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row .form-input { flex: 1; min-width: 0; }
.code-row .btn-send-code { white-space: nowrap; min-width: 108px; }

/* 邮箱提示卡（新设备验证页） */
.verify-email-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.14);
    margin-bottom: 22px;
}
.verify-email-box > .iconify { font-size: 22px; color: #2563EB; flex-shrink: 0; }
.verify-email-box div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.verify-email-box span { font-size: 12px; color: #7C8798; }
.verify-email-box strong { font-size: 14px; color: #1E293B; word-break: break-all; }

/* 新设备验证提示（登录页） */
.auth-verify-tip {
    text-align: center;
    margin-bottom: 12px;
    color: #D97706;
}

/* 同意条款 */
.auth-agree {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748B;
    margin: 2px 0 18px;
    cursor: pointer;
    user-select: none;
}
.auth-agree input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2563EB;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-agree a { color: #2563EB; }

/* 提交按钮：原型图为亮蓝实心（全局 .btn-primary 用的是深蓝灰，这里覆盖） */
.auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 600;
    background: #2F6BE4;
    color: #FFFFFF;
    border: none;
}
.auth-submit:hover { background: #1F58CC; color: #FFFFFF; }
.auth-submit .iconify { font-size: 18px; }

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0 14px;
    color: var(--c-text-muted, #94A3B8);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border, #E0E5EC);
}
.auth-divider span { padding: 0 14px; }

/* 卡片底部链接 */
.auth-footer {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--c-text-muted, #94A3B8);
}
.auth-footer a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover { text-decoration: underline; }
.auth-footer-center { justify-content: center; margin-top: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .auth-page {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
    }
    .auth-intro-title { font-size: 32px; }
    .auth-illustration { display: none; }
}

@media (max-width: 768px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 26px 0 40px;
        min-height: auto;
    }
    .auth-intro-title { font-size: 26px; }
    .auth-intro-sub { font-size: 14px; margin-bottom: 22px; }
    .auth-intro-feats { gap: 14px; }
    .auth-card { padding: 26px 20px 22px; border-radius: 16px; }
}
