:root {
    --canvas: #F1F3EC;
    --ink: #193F34;
    --muted: #607167;
    --accent: #216354;
    --line: #CCD8CD;
    --surface: #FCFDF9;
}

[x-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'Fira Sans', 'PingFang SC', system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; margin: 0; }
button, a, [role='button'] { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page-bg { min-height: 100vh; min-height: 100dvh; padding: 40px 24px; display: grid; place-items: center; }
.panel { width: min(1080px, 100%); display: grid; grid-template-columns: 1fr 480px; align-items: center; gap: 72px; }
.brand { position: relative; padding: 30px 0; }
.brand-kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .18em; border-bottom: 1px solid #94AA8D; padding-bottom: 12px; }
.brand h2 { margin-top: 30px; font-family: 'Songti SC', 'Noto Serif CJK SC', serif; font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1.3; letter-spacing: -.04em; }
.brand-description { margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.journey-mark { width: 180px; height: 180px; margin: 32px 0; border: 1px solid #A9BC9B; border-radius: 50%; display: grid; place-items: center; background: #E4EAD8; box-shadow: 18px 0 0 -1px var(--canvas), 19px 0 0 #A9BC9B; }
.journey-mark span { font-family: 'Songti SC', serif; font-size: 72px; color: #53754F; }
.brand-note { font-size: 13px; color: var(--muted); }
.reg-card { width: 100%; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; background: var(--surface); box-shadow: 0 20px 60px #25442F0C; }
.lbl { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ipt { width: 100%; min-width: 0; height: 46px; padding: 0 12px; color: var(--ink); background: #F4F7F0; border: 1px solid var(--line); border-radius: 5px; font-size: 16px; transition: border-color 150ms, box-shadow 150ms; }
.ipt::placeholder { color: #788579; }
.ipt:hover { border-color: #8DA68F; }
.ipt:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #21635414; }
.err { color: #B42318; font-size: 12px; margin-top: 4px; }
.button-primary, .btn-outline { min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--accent); border-radius: 5px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 150ms, transform 150ms; }
.button-primary { color: #FFF; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #174B3E; }
.button-primary:disabled { opacity: .45; cursor: not-allowed; }
.button-primary:active:not(:disabled), .btn-outline:active { transform: translateY(1px); }
.button-full { width: 100%; }
.btn-outline { color: var(--accent); background: transparent; border-color: var(--line); }
.btn-outline:hover { background: #E9F0E4; border-color: var(--accent); }
.dl-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 12px; }
.dl-divider::before, .dl-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.captcha-box { width: 104px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #ECF1E6; cursor: pointer; }
.captcha-box img { width: 100%; height: 100%; object-fit: cover; }
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid; border-radius: 6px; font-size: 14px; box-shadow: 0 8px 30px #193F3418; }
.toast .ico { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; }
.toast .ico svg { width: 18px; height: 18px; }
.toast-error { background: #FFF0ED; border-color: #F0B8AE; color: #B42318; }
.toast-success { background: #EFF8EA; border-color: #B3D2A0; color: #28552F; }
.animate-spin { animation: spin 1s linear infinite; }
.opacity-25 { opacity: .25; }
.opacity-75 { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .panel { grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; }
    .brand h2 { font-size: 40px; }
}
@media (max-width: 720px) {
    .page-bg { padding: 24px 16px; }
    .panel { max-width: 480px; display: block; }
    .brand { padding: 0 4px 24px; }
    .brand h2 { margin-top: 16px; font-size: 32px; }
    .brand h2 br { display: none; }
    .brand-description, .journey-mark, .brand-note { display: none; }
    .reg-card { padding: 24px 20px; }
    .reg-card form > div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
