/* ==========================================================================
   登录页：浅蓝纸底 + 深蓝品牌面 + 白色表单面
   ========================================================================== */

:root {
    --brand-600: #2563eb;
    --brand-700: #113f9b;
    --brand-soft: #e8f1fc;
    --ink-900: #14243d;
    --muted-600: #607089;
    --line-200: #dfe8f3;
    --paper-100: #f5f8fc;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.auth-body {
    min-height: 100vh;
    font-family: var(--font-ui);
    color: var(--ink-900);
    background:
        radial-gradient(900px 520px at 12% 8%, rgba(37, 99, 235, .10), transparent 60%),
        radial-gradient(700px 420px at 88% 82%, rgba(14, 159, 138, .10), transparent 62%),
        var(--paper-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-shell {
    width: min(1160px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(20, 36, 61, .10);
}

/* ---------- 左：品牌面 ---------- */
.auth-brand {
    position: relative;
    padding: 44px 46px;
    display: flex;
    flex-direction: column;
    color: #dbe6f3;
    background:
        radial-gradient(560px 420px at 82% 14%, rgba(37, 99, 235, .55), transparent 66%),
        radial-gradient(500px 380px at 8% 92%, rgba(14, 159, 138, .30), transparent 68%),
        #0c1b31;
}

.auth-brand-head { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #2f80ed, #0e9f6e);
}
.brand-name { color: #fff; font-size: 15px; font-weight: 600; }
.brand-en { font-size: 9.5px; letter-spacing: .18em; color: #8fa4bd; margin-top: 3px; }

.auth-brand h1 {
    margin: 46px 0 16px;
    font-size: clamp(30px, 3.4vw, 40px);
    line-height: 1.22;
    letter-spacing: -.045em;
    color: #fff;
    font-weight: 600;
}
.auth-lead { margin: 0; font-size: 14.5px; line-height: 1.8; color: #b3c4d8; max-width: 380px; }

.auth-points { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #cfdced; }
.auth-points span {
    width: 18px; height: 18px;
    border-radius: 6px;
    background: rgba(14, 159, 138, .24);
    position: relative;
    flex: none;
}
.auth-points span::after {
    content: "";
    position: absolute;
    left: 5px; top: 4px;
    width: 8px; height: 4px;
    border-left: 2px solid #2dd4bf;
    border-bottom: 2px solid #2dd4bf;
    transform: rotate(-45deg);
}

.auth-foot {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #7c92ab;
}

/* ---------- 右：表单面 ---------- */
.auth-panel {
    padding: 56px 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-form { width: min(380px, 100%); }
.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    color: var(--muted-600);
    font-size: 12.5px;
    line-height: 1;
    text-decoration: none;
    transition: color .16s ease;
}
.auth-home-link svg { width: 15px; height: 15px; }
.auth-home-link:hover { color: var(--brand-600); }
.auth-form-head { margin-bottom: 26px; }
.eyebrow {
    display: inline-block;
    font-size: 9.5px;
    letter-spacing: .18em;
    color: var(--brand-600);
    font-weight: 600;
}
.auth-form-head h2 { margin: 10px 0 6px; font-size: 30px; letter-spacing: -.04em; font-weight: 600; }
.auth-form-head p { margin: 0; color: var(--muted-600); font-size: 13.5px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-label { font-size: 13px; color: #374151; font-weight: 500; }

.auth-form input[type=text],
.auth-form input[type=password] {
    width: 100%;
    height: 46px;
    padding: 10px 13px;
    font-size: 13.5px;
    font-family: var(--font-ui);
    color: var(--ink-900);
    background: #f8fbff;
    border: 1px solid #dbe6f3;
    border-radius: 10px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-form input:focus {
    background: #fff;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
}
.btn-primary:hover { background: var(--brand-700); }
.btn-block { width: 100%; margin-top: 6px; }

.form-alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
}

.auth-tip { margin: 18px 0 0; font-size: 12px; color: #8595aa; line-height: 1.7; }

@media (max-width: 1060px) {
    .auth-brand { padding: 36px 34px; }
    .auth-panel { padding: 44px 34px; }
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr); min-height: auto; }
    .auth-brand { padding: 28px 26px; }
    .auth-brand h1 { margin: 22px 0 10px; font-size: 26px; }
    .auth-lead, .auth-points, .auth-foot { display: none; }
    .auth-panel { padding: 32px 26px 36px; }
}

@media (max-width: 680px) {
    body.auth-body { padding: 16px; }
    .auth-shell { border-radius: 20px; }
    .auth-brand { display: none; }
    .auth-panel { padding: 28px 22px 32px; }
}
