:root {
    color-scheme: light;
    --ink: #17233f;
    --ink-soft: #44506a;
    --paper: #f5f1e7;
    --cream: #fffdf8;
    --blue: #3559a6;
    --blue-dark: #24427f;
    --gold: #c89f58;
    --line: rgba(23, 35, 63, .14);
}

* { box-sizing: border-box; }
[v-cloak] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    color: var(--ink);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 14% 18%, rgba(200,159,88,.18), transparent 27%),
        linear-gradient(135deg, #e9e5da 0%, #f7f4ec 44%, #e8edf5 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .26;
    background-image: linear-gradient(rgba(23,35,63,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,35,63,.035) 1px, transparent 1px);
    background-size: 36px 36px;
}

.login-shell {
    position: relative;
    width: min(1120px, calc(100vw - 48px));
    min-height: min(720px, calc(100dvh - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 30px 80px rgba(26,38,67,.18);
    backdrop-filter: blur(16px);
}

.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 62px;
    color: #f9f7ef;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 20%, rgba(86,119,186,.6), transparent 28%),
        linear-gradient(145deg, #182644 0%, #23375d 55%, #17233f 100%);
}
.login-story::before {
    content: "V";
    position: absolute;
    right: -28px;
    bottom: -118px;
    color: rgba(255,255,255,.035);
    font: 650px/.8 Georgia, serif;
}
.login-story::after {
    content: "";
    position: absolute;
    right: 70px;
    top: 160px;
    width: 150px;
    height: 210px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50% 50% 48% 52%;
    transform: rotate(26deg);
}
.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 54px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 15px;
    color: #fff;
    background: rgba(255,255,255,.07);
    font: 28px Georgia, serif;
}
.eyebrow {
    margin: 0 0 12px;
    color: #b99b67;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}
.brand-copy h1 { margin: 0; font: 54px/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.brand-intro { max-width: 400px; margin: 22px 0 0; color: #cbd3e1; font-size: 17px; line-height: 1.8; }
.story-quote { position: relative; max-width: 410px; margin-top: auto; padding: 32px 0 30px 58px; border-top: 1px solid rgba(255,255,255,.13); }
.story-quote p { margin: 0; color: #e5e8ef; font: 18px/1.75 Georgia, "Songti SC", serif; }
.quote-mark { position: absolute; left: 0; top: 18px; color: var(--gold); font: 58px Georgia, serif; }
.story-meta { display: flex; align-items: center; gap: 12px; color: #8f9bb0; font-size: 11px; letter-spacing: .08em; }
.story-meta i { width: 18px; height: 1px; background: rgba(255,255,255,.25); }

.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 72px 68px; background: rgba(255,253,248,.66); }
.mobile-brand { display: none; }
.login-panel h2 { margin: 0; color: var(--ink); font: 38px/1.2 Georgia, "Songti SC", serif; }
.login-lead { margin: 13px 0 42px; color: #697389; font-size: 14px; }
form { display: grid; }
label { margin: 0 0 8px; color: #34405a; font-size: 13px; font-weight: 700; }
.field-wrap { position: relative; margin-bottom: 23px; }
.field-wrap svg { position: absolute; left: 16px; top: 50%; width: 18px; transform: translateY(-50%); fill: none; stroke: #778198; stroke-width: 1.7; }
input {
    width: 100%; height: 54px; padding: 0 64px 0 47px;
    border: 1px solid #d7dce5; border-radius: 12px; outline: none;
    color: var(--ink); background: rgba(255,255,255,.84); font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #a2a9b8; }
input:focus { border-color: #6981b5; background: #fff; box-shadow: 0 0 0 4px rgba(53,89,166,.1); }
.password-toggle { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 10px; border: 0; color: #64718a; background: transparent; cursor: pointer; font-size: 12px; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: -8px 0 18px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #657087; font-weight: 500; cursor: pointer; }
.remember-option input { width: 16px; height: 16px; padding: 0; accent-color: var(--blue); }
.forgot-button { padding: 4px 0; border: 0; color: #536da6; background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
.recovery-panel { margin: -6px 0 18px; padding: 14px; border: 1px solid #dfe3eb; border-radius: 12px; background: rgba(255,255,255,.68); }
.recovery-panel p { margin: 0 0 10px; color: #6c7588; font-size: 12px; line-height: 1.6; }
.recovery-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.recovery-row input { height: 42px; padding: 0 12px; }
.recovery-row button { padding: 0 14px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); cursor: pointer; }
.recovery-panel small { display: block; min-height: 17px; margin-top: 8px; color: #4c7760; line-height: 1.5; }
.recovery-panel small.is-error { color: #b63f43; }
.form-error { min-height: 20px; margin: -8px 0 8px; color: #b63f43; font-size: 13px; }
.login-button {
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 21px; border: 0; border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 12px 24px rgba(36,66,127,.22); cursor: pointer;
    font-size: 15px; font-weight: 700; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.login-button:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(36,66,127,.28); }
.login-button:disabled { opacity: .7; cursor: wait; transform: none; }
.privacy-note { margin: 30px 0 0; text-align: center; color: #939aa8; font-size: 11px; }
.privacy-note span { margin-right: 6px; color: #b99b67; font-size: 8px; }
.register-form { gap:9px; }
.register-form input { height:48px; padding:0 14px; margin-bottom:5px; }
.register-form .form-error { margin:3px 0; }
.register-switch { margin:17px auto 0; padding:8px; border:0; color:#536da6; background:transparent; cursor:pointer; font:inherit; font-size:13px; }

@media (max-width: 820px) {
    body { display: grid; place-items: center; padding: 24px 14px; }
    .login-shell { width: min(470px, 100%); min-height: 0; margin: 0 auto; grid-template-columns: 1fr; border-radius: 24px; }
    .login-story { display: none; }
    .login-panel { padding: 48px 38px 42px; }
    .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; color: var(--ink); font: 18px Georgia, serif; }
    .mobile-brand span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--ink); }
}
@media (max-width: 430px) {
    .login-panel { padding: 36px 24px 32px; }
    .login-panel h2 { font-size: 32px; }
    .login-lead { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.welcome-shell { width:min(820px,calc(100vw - 32px)); margin:40px auto; }
.welcome-card { padding:clamp(28px,6vw,64px); border:1px solid rgba(255,255,255,.8); border-radius:28px; background:rgba(255,253,248,.9); box-shadow:0 28px 70px rgba(26,38,67,.16); }
.welcome-card h1 { margin:0; font:clamp(32px,5vw,48px)/1.18 Georgia,"Songti SC",serif; }
.welcome-lead { color:#667189; line-height:1.8; }
.welcome-steps { display:grid; gap:12px; margin:28px 0; padding:0; list-style:none; counter-reset:steps; }
.welcome-steps li { display:grid; grid-template-columns:140px 1fr; gap:18px; padding:18px; border:1px solid #e0e3e9; border-radius:14px; background:#fff; }
.welcome-steps b { color:var(--blue); }
.welcome-steps span { color:#59647a; line-height:1.7; }
.welcome-confirm { display:flex; align-items:center; gap:10px; margin:18px 0; }
.welcome-confirm input { width:18px; height:18px; padding:0; }
#passwordChangeForm { display: grid; gap: 10px; }
#passwordChangeForm input { width: 100%; height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
#passwordChangeForm .form-error { margin: 0; }
#passwordChangeLogout { margin-top: 18px; }
@media(max-width:600px){.welcome-steps li{grid-template-columns:1fr;gap:6px}}
