/* ==========================================================================
   chgod.cn —— 登录页（浅紫蓝底 + 左侧文案 + 右侧浮起白卡）
   参考：巨量百应 / 网易邮箱大师登录页
   ========================================================================== */

:root {
    --brand: #4a5bd0;          /* 主色：靛蓝紫 */
    --brand-dark: #3a48b0;
    --brand-light: #eef0fd;
    --accent: #6f7de0;
    --accent-2: #c08a3e;       /* 对比点缀：琥珀铜，只用于极小面积 */
    --text: #1b2136;
    --muted: #6c7590;
    --line: #e6e9f4;
    --bg: #f4f6fd;
    --card: #ffffff;
    --radius: 12px;
    --shadow-card: 0 20px 56px rgba(58, 73, 173, .12);
}

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

body {
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei",
                 "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   顶部
   -------------------------------------------------------------------------- */
header {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(230, 233, 244, .7);
}

header .wrapper { display: flex; align-items: center; height: 64px; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand);
}

.logo .mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   主体：左文案 + 右白卡
   -------------------------------------------------------------------------- */
.login-page {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 24px 56px;
    overflow: hidden;
}

/* 背景柔和装饰（大色块 + 细线环 + 点阵） */
.bg-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 74px;
    align-items: center;
}

/* 左侧文案 */
.brand-copy .eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 1.6px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.brand-copy h1 {
    font-size: 46px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 18px;
}

.brand-copy .lead {
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 28px;
}

.points { list-style: none; display: grid; gap: 12px; }

.points li {
    position: relative;
    padding-left: 24px;
    font-size: 14.5px;
    color: #4d5675;
}

.points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .4;
}

/* 右侧登录卡片 */
.login-card {
    background: var(--card);
    border: 1px solid rgba(230, 233, 244, .9);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 40px 36px 28px;
}

.login-card h2 {
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.login-card .sub {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 26px;
}

.field { position: relative; margin-bottom: 14px; }

.field input {
    width: 100%;
    height: 46px;
    padding: 0 60px 0 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f5f6fb;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    transition: all .2s ease;
}

.field input::placeholder { color: #a9b0c6; }

.field input:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(74, 91, 208, .1);
}

.field .toggle-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 6px;
}

.field .toggle-eye:hover { color: var(--brand); }

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 13.5px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    cursor: pointer;
}

.remember input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }

.forgot { color: var(--brand); }
.forgot:hover { text-decoration: underline; }

.btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

.alert {
    display: none;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.alert.show { display: block; }
.alert.error { background: #fdeceb; color: #a3332a; border: 1px solid #f6cbc7; }
.alert.ok { background: #eef8f2; color: #1c6b4f; border: 1px solid #cfe8db; }

.back {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 18px 0 24px;
    font-size: 12.5px;
    color: #9099ae;
}

footer p { padding: 0 10px; }
footer a { color: #828ca4; white-space: nowrap; }
footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .login-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 42px; }
    .brand-copy h1 { font-size: 36px; }
}

@media (max-width: 860px) {
    .login-page { padding: 34px 20px 42px; }
    .login-grid { grid-template-columns: 1fr; gap: 30px; max-width: 430px; }
    .brand-copy { text-align: center; }
    .brand-copy .eyebrow { margin-bottom: 10px; font-size: 12px; }
    .brand-copy h1 { font-size: 29px; letter-spacing: 1px; margin-bottom: 12px; }
    .brand-copy .lead { font-size: 14.5px; margin: 0 auto 20px; }
    /* 列表块整体居中、内部左对齐，圆点才整齐 */
    .points { justify-items: start; gap: 8px; width: fit-content; margin: 0 auto; }
    .points li { font-size: 13.5px; }
    .login-card { padding: 30px 24px 24px; }
    .bg-deco { opacity: .85; }
    /* 窄屏下点阵会被裁到边缘，看起来像脏点，直接隐藏 */
    .bg-deco .deco-dots { display: none; }
}
