:root {
    --brand1: #6366f1;
    --brand2: #8b5cf6;
    --brand3: #ec4899;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #eef1f8;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.login-wrap {
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(99, 102, 241, .20);
    overflow: hidden;
    display: flex;
}

/* ===== 左侧品牌面板 ===== */
.brand-panel {
    flex: 1.05;
    background: linear-gradient(135deg, var(--brand1), var(--brand2) 55%, var(--brand3));
    color: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.brand-panel::before { width: 220px; height: 220px; top: -70px; right: -60px; }
.brand-panel::after  { width: 160px; height: 160px; bottom: -50px; left: -40px; background: rgba(255,255,255,.08); }
.brand-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 700; letter-spacing: .5px;
    position: relative; z-index: 1;
}
.brand-logo .dot {
    width: 38px; height: 38px; border-radius: 11px;
    background: rgba(255, 255, 255, .22);
    display: grid; place-items: center;
}
.brand-hero { position: relative; z-index: 1; }
.brand-hero h1 { font-size: 30px; line-height: 1.35; margin-bottom: 14px; font-weight: 800; }
.brand-hero p { font-size: 15px; line-height: 1.8; opacity: .9; max-width: 320px; }
.brand-feats { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.brand-feats li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .95; }
.brand-feats .ic {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    background: rgba(255, 255, 255, .18); display: grid; place-items: center;
}

/* ===== 右侧表单面板 ===== */
.form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.form-inner { width: 100%; max-width: 340px; }
.form-inner h2 { font-size: 24px; font-weight: 800; }
.form-inner .sub { color: var(--muted); font-size: 14px; margin: 6px 0 26px; }

.alert {
    background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
    padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px;
}
.alert-success {
    background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0;
    padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #374151; }
.input {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
    background: #fcfcfe;
}
.input:focus-within { border-color: var(--brand1); box-shadow: 0 0 0 4px rgba(99,102,241,.14); background: #fff; }
.input svg { flex: none; color: #9ca3af; }
.input input {
    border: none; outline: none; background: transparent;
    padding: 13px 0; width: 100%; font-size: 14px; color: var(--text);
}
.row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.remember input { accent-color: var(--brand1); width: 15px; height: 15px; }
.link { color: var(--brand1); text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn {
    width: 100%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px;
    padding: 13px; border-radius: 12px;
    transition: transform .08s, box-shadow .2s;
    box-shadow: 0 10px 24px rgba(99,102,241,.32);
}
.btn:hover { box-shadow: 0 14px 30px rgba(99,102,241,.42); }
.btn:active { transform: translateY(1px); }

.hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
.hint a { color: var(--brand1); text-decoration: none; font-weight: 600; }
.hint a:hover { text-decoration: underline; }

/* ===== 邮箱验证码：输入框 + 获取按钮 一行 ===== */
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row .input { flex: 1; min-width: 0; }
.btn-code {
    flex: none; width: 112px; cursor: pointer;
    border: 1.5px solid var(--brand1); background: #fff; color: var(--brand1);
    border-radius: 12px; font-size: 13px; font-weight: 600;
    transition: background .15s, color .15s, opacity .15s;
}
.btn-code:hover:not(:disabled) { background: var(--brand1); color: #fff; }
.btn-code:disabled { opacity: .55; cursor: not-allowed; border-color: var(--line); color: var(--muted); background: #f7f7fa; }

/* 图形验证码图片 */
.captcha-img {
    flex: none; width: 112px; height: 46px;
    border-radius: 12px; border: 1.5px solid var(--line);
    cursor: pointer; object-fit: cover; background: #f3f4f6;
    transition: border-color .15s;
}
.captcha-img:hover { border-color: var(--brand1); }

.tip-line { font-size: 12px; color: var(--muted); line-height: 1.6; margin: -4px 0 18px; }

/* 登录锁定倒计时提示 */
.lock-tip { font-weight: 600; }

@media (max-width: 760px) {
    .login-wrap { flex-direction: column; min-height: auto; }
    .brand-panel { display: none; }
    .form-panel { padding: 36px 24px; }
}
