/* 登录页：左侧品牌面板 + 右侧手机号表单 */

.login-page { background: var(--paper); }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 46%) 1fr;
}

/* ---------- 左：品牌面板（配色取自游戏大厅） ---------- */
.login-aside {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 44px 52px 40px;
    color: #eaf2ff;
    background:
        radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .22), transparent 55%),
        radial-gradient(90% 70% at 92% 92%, rgba(8, 34, 96, .55), transparent 60%),
        linear-gradient(158deg, #5a9dff 0%, #3d8ef6 42%, #2a63d6 100%);
}
.login-aside::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .4;
    mask-image: radial-gradient(70% 60% at 78% 28%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 78% 28%, #000 0%, transparent 75%);
}
.login-aside > * { position: relative; z-index: 1; }

.brand-light { color: #fff; font-size: 15px; }
/* 蓝底上给图标一圈白边，否则浅蓝底会和面板糊在一起 */
.brand-light .brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 8px 18px rgba(8, 30, 88, .38);
}

.aside-main { margin: 26px 0 auto; padding-top: 8vh; }
.aside-eyebrow {
    font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .72); font-weight: 700; margin-bottom: 16px;
}
/* 标题抄游戏里那句黄字：亮黄 + 橙色下沿 */
.aside-main h1 {
    font-size: clamp(34px, 3.6vw, 46px); line-height: 1.22; letter-spacing: -.02em;
    font-weight: 700; color: #ffd75e;
    text-shadow: 0 3px 0 rgba(186, 78, 0, .55), 0 12px 26px rgba(10, 40, 110, .35);
}
.aside-lede {
    margin-top: 18px; max-width: 360px;
    font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .82);
}

/* 底部名言：轮换淡入淡出，占住原来统计数字的位置 */
.aside-quote {
    margin: 0; padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .24);
    min-height: 92px;
}
.aside-quote .q-text {
    margin: 0;
    font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .88);
    transition: opacity .3s ease;
}
.aside-quote .q-from {
    margin-top: 9px; font-size: 11.5px; letter-spacing: .03em;
    color: rgba(255, 255, 255, .62);
    transition: opacity .3s ease;
}
.aside-quote.is-fading .q-text,
.aside-quote.is-fading .q-from { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .aside-quote .q-text, .aside-quote .q-from { transition: none; }
}

/* ---------- 右：表单 ---------- */
.login-main {
    display: grid; place-items: center; padding: 40px 28px;
}
.login-card { width: 100%; max-width: 372px; }

.login-card h2 {
    font-size: 24px; letter-spacing: -.02em; font-weight: 700; margin-bottom: 8px;
}
.login-sub { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-bottom: 26px; }

.field .input {
    height: 50px; font-size: 17px; letter-spacing: .04em; padding-left: 15px;
    font-variant-numeric: tabular-nums;
}
.field.has-error .input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(173, 79, 56, .1); }

.code-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; margin-top: 10px;
}
.btn-code {
    height: 50px; padding: 0 8px; border-radius: 12px; cursor: pointer;
    border: 1px solid #bcd4fb; background: #eff6ff; color: var(--brand-dark);
    font-size: 13.5px; font-weight: 600; white-space: nowrap; letter-spacing: .01em;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-code:hover:not(:disabled) { background: var(--brand-50); border-color: var(--brand); }
.btn-code:disabled { color: var(--muted-2); background: #f4f7fd; border-color: var(--line); cursor: default; }

.login-error {
    min-height: 20px; margin: 8px 0 2px; font-size: 12.5px; color: var(--red);
    display: flex; align-items: center; gap: 6px;
}
.login-error::before { content: "!"; display: none; }
.login-error.show::before {
    display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
    background: var(--red-50); color: var(--red); font-size: 11px; font-weight: 700;
}

.login-submit { width: 100%; height: 50px; margin-top: 10px; font-size: 16px; border-radius: 13px; letter-spacing: .02em; }

.login-note {
    margin-top: 16px; font-size: 12px; color: var(--muted-2); line-height: 1.7;
}

/* 演示账号 */
.demo-box { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 16px; }
.demo-title {
    font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em;
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.demo-title span { font-weight: 500; color: var(--muted-2); }
.demo-list { display: grid; gap: 6px; }
.demo-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; text-align: left;
    border: 1px solid var(--line); background: #fbfdff; border-radius: 11px;
    padding: 9px 12px; transition: border-color .15s, background .15s;
}
.demo-item:hover { border-color: #bcd4fb; background: var(--brand-50); }
.demo-item .lab { font-size: 13px; font-weight: 500; }
.demo-item .ph { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.demo-item .go { font-size: 12px; color: var(--brand); opacity: 0; transition: opacity .15s; }
.demo-item:hover .go { opacity: 1; }

/* 小屏：合并成一栏 */
@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-aside {
        padding: 26px 22px 24px;
        border-radius: 0 0 22px 22px;
    }
    .aside-main { padding-top: 20px; margin: 0; }
    .aside-main h1 { font-size: 30px; }
    .aside-main h1 br { display: none; }
    .aside-lede { margin-top: 12px; font-size: 13.5px; max-width: none; }
    /* 手机上把名言收起来：头部已经够高，别把表单挤到折叠线以下 */
    .aside-quote { display: none; }
    .login-main { padding: 30px 20px 48px; align-items: start; }
    .login-card { max-width: 420px; }
}
