:root {
  --blue: #173f71;
  --blue-hover: #10335e;
  --gold: #c7a468;
  --ink: #1c2d42;
  --muted: #637286;
  --line: #dbe2eb;
  --error: #ac2b32;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: #f7f8fa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100svh; }
.auth-page { background: radial-gradient(ellipse at 12% 0%, #e8eef6 0, transparent 46%), #f7f8fa; }
[data-theme="dark"] .auth-page { background: radial-gradient(ellipse at 12% 0%, #192a40 0, transparent 46%), #101b2b; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #517baa; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 5; padding: 12px; background: #fff; color: var(--blue); }
.skip-link:focus { top: 12px; }
.topbar { max-width: 1328px; margin: 0 auto; min-height: 100px; padding: 22px 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand-pair { display: flex; align-items: center; gap: 24px; }
.domain-logo { display: block; width: 180px; height: auto; }
.domain-wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 27px; letter-spacing: -1.3px; font-weight: 700; color: var(--blue); white-space: nowrap; position: relative; }
.domain-extension { font-family: "Segoe UI", sans-serif; font-size: 11px; letter-spacing: 1.2px; font-weight: 600; margin-left: 2px; }
.brand-spark { position: absolute; top: -7px; right: -13px; color: #a6844c; font-size: 14px; font-weight: 400; }
.brand-cross { font-size: 22px; color: #8a97a7; font-weight: 300; }
.partner-logo { width: 178px; height: auto; display: block; }
.private-label { font-size: 12px; color: #657386; display: inline-flex; align-items: center; gap: 8px; letter-spacing: .8px; white-space: nowrap; }
.private-label .icon { width: 15px; height: 15px; }
.login-shell { display: grid; grid-template-columns: 1.18fr 1fr; width: calc(100% - 88px); max-width: 1240px; margin: 12px auto 0; background: white; border: 1px solid #e2e6ec; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 66px #173f7111; }
.story-panel { background: radial-gradient(ellipse at 92% 10%, #f7f0e2 0, transparent 50%), linear-gradient(150deg, #edf4fa, #e7eef7 76%); position: relative; overflow: hidden; }
.story-panel::before { content: ""; width: 570px; height: 570px; position: absolute; top: -270px; left: -270px; border: 1px solid #fff9; border-radius: 50%; pointer-events: none; }
.story-panel::after { content: ""; width: 460px; height: 460px; position: absolute; right: -320px; top: 185px; border: 1px solid #d9e2ef; border-radius: 50%; pointer-events: none; }
.story-content { padding: 44px 48px 27px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #526b89; margin: 0 0 22px; }
.eyebrow-line { width: 24px; height: 2px; background: #b89a63; }
h1 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 650; line-height: 1.37; margin: 0; letter-spacing: -.8px; color: var(--ink); }
.title-art { position: relative; z-index: 0; }
.title-art::after { content: ""; position: absolute; inset: auto 0 5px; height: 9px; z-index: -1; background: #c7a46842; border-radius: 4px; }
.story-description { max-width: 34em; font-size: 14px; color: #51667e; line-height: 1.85; margin: 16px 0 0; }
.journey-art { position: relative; height: 156px; margin: 23px 0 0; border: 1px solid #cfdbe9; border-radius: 15px; background: linear-gradient(130deg, #ffffffb5, #f8fbff40); }
[data-theme="dark"] .journey-art { border-color: var(--line); background: linear-gradient(130deg, #263f5a, #1b2e47); }
.art-grid { position: absolute; inset: 25px 0 14px; background-image: linear-gradient(#8da5c01b 1px, transparent 1px), linear-gradient(90deg, #8da5c01b 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.art-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: #536a85; position: absolute; }
.art-label-top { left: 18px; top: 15px; }
.journey-svg { position: absolute; inset: 16px 4% 18px; width: 92%; height: calc(100% - 34px); overflow: visible; }
.path-caption { position: absolute; bottom: 9px; font-size: 10px; color: #536a85; transform: translateX(-50%); }
.path-caption-one { left: 16%; }.path-caption-two { left: 41%; }.path-caption-three { left: 69%; }
.journey-trace { stroke-dasharray: 12 540; animation: route-trace 10s linear infinite; }
.paper-plane { animation: plane-float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.goal-halo { animation: halo-breathe 4s ease-in-out infinite; transform-origin: 419px 31px; }
@keyframes route-trace { from { stroke-dashoffset: 20; } to { stroke-dashoffset: -540; } }
@keyframes plane-float { 0%, 100% { translate: 0 0; } 50% { translate: 3px -6px; } }
@keyframes halo-breathe { 0%, 100% { opacity: .45; scale: .8; } 50% { opacity: 1; scale: 1.15; } }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 22px; margin-top: 25px; }
.feature { display: flex; align-items: flex-start; gap: 11px; }
.feature-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid #d4deeb; background: #ffffff5e; color: #315784; }
.feature-icon .icon { width: 18px; height: 18px; }
.feature h2 { font-size: 13px; font-weight: 600; letter-spacing: .4px; margin: 0 0 5px; line-height: 1.4; }
.feature p { margin: 0; font-size: 12px; color: #62758d; line-height: 1.6; }
.daily-note { display: flex; align-items: center; gap: 10px; padding-top: 23px; margin-top: 28px; border-top: 1px solid #d9e2ec; min-height: 48px; }
.note-mark { color: #b3935b; font-family: Georgia, serif; font-size: 29px; line-height: 1; height: 18px; flex-shrink: 0; }
.daily-note p { font-size: 12px; color: #60738a; line-height: 1.7; margin: 0; flex: 1; }
.quote-controls { display: flex; gap: 1px; align-items: center; margin-right: -8px; }
.quote-dot { width: 24px; height: 36px; position: relative; background: none; border: none; padding: 0; }
.quote-dot::after { content: ""; width: 4px; height: 4px; border-radius: 5px; background: #99abc0; display: block; margin: auto; transition: width .2s, background .2s; }
.quote-dot.active::after { background: #173f71; width: 12px; }
.form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 48px 42px; }
.form-container { width: 100%; max-width: 356px; }
.form-heading { margin-bottom: 32px; }
.form-kicker { font-size: 11px; letter-spacing: 1px; color: #67788d; font-weight: 600; }
.form-heading h2 { font-size: 30px; letter-spacing: -.3px; margin: 9px 0 9px; font-weight: 650; line-height: 1.4; }
.form-heading p { color: #637286; font-size: 12px; margin: 0; line-height: 1.8; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); width: 18px; height: 18px; color: #73849a; pointer-events: none; }
.input-wrap input { width: 100%; height: 49px; border: 1px solid #9cabbc; border-radius: 8px; background: #fcfdff; padding: 0 43px; color: #26394f; font-size: 13px; outline: none; transition: border .18s, box-shadow .18s; }
.input-wrap input::placeholder { color: #7b8798; font-size: 12px; }
.input-wrap input:hover { border-color: #70869f; }
.input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #173f7110; }
.input-wrap input[aria-invalid="true"] { border-color: var(--error); }
.password-toggle { display: grid; place-items: center; width: 42px; height: 45px; right: 3px; top: 2px; position: absolute; background: none; border: none; border-radius: 5px; color: #718296; }
.password-toggle:hover { color: var(--blue); background: #edf2f8; }
.password-toggle .icon { width: 18px; height: 18px; }
.field-error { font-size: 11px; color: var(--error); margin: 6px 0 0; line-height: 1.7; }
.field-hint { font-size: 10px; color: var(--muted); margin: 7px 0 0; line-height: 1.7; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 25px; font-size: 11px; min-height: 23px; }
.checkbox-label { display: inline-flex; gap: 8px; align-items: center; color: #637286; cursor: pointer; min-height: 26px; }
.checkbox-label input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.text-button { background: none; border: none; color: var(--blue); font-size: 11px; padding: 5px 0 5px 8px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-notice { padding: 11px 13px; background: #fff4f3; border: 1px solid #f0ceca; color: #9b3034; font-size: 12px; line-height: 1.8; border-radius: 7px; margin-bottom: 16px; }
.form-notice.notice-success { background: #eef7f1; border-color: #b7d6c3; color: #285a3f; }
.recovery-form { margin-top: 22px; }
.recovery-form label { display: block; margin-bottom: 8px; font-size: 12px; }
.recovery-form .input-wrap input { padding-left: 12px; }
.recovery-form p { font-size: 12px; line-height: 1.8; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 49px; background: var(--blue); border: 1px solid var(--blue); color: #fff; font-size: 13px; font-weight: 500; border-radius: 8px; letter-spacing: 1px; transition: background .2s, box-shadow .2s; }
.submit-button:hover { background: var(--blue-hover); box-shadow: 0 5px 12px #173f711b; }
.submit-button:active { background: #0b294f; }
.submit-button .icon { width: 16px; height: 16px; transition: transform .2s; }
.submit-button:hover .icon { transform: translateX(3px); }
.submit-button:disabled { opacity: .75; }
.loading-spinner { width: 16px; height: 16px; border: 2px solid #fff5; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.join-divider { display: flex; align-items: center; gap: 15px; font-size: 10px; color: #758397; margin: 26px 0 18px; }
.join-divider::before, .join-divider::after { content: ""; height: 1px; background: #e6eaf0; flex: 1; }
.invite-button { width: 100%; height: 46px; background: #fff; border: 1px solid #c1ccda; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #355272; font-size: 12px; transition: background .2s, border .2s; }
.invite-button .icon { width: 16px; height: 16px; }
.invite-button:hover { background: #f4f7fb; border-color: #839ab5; }
.invite-arrow { margin-left: 2px; }
.access-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: #6b7c90; margin: 25px 0 0; }
.access-note .icon { width: 12px; height: 12px; }
.page-footer { max-width: 1240px; margin: 24px auto; width: calc(100% - 88px); display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 10px; color: #6d798a; letter-spacing: .1px; }
.footer-separator { padding: 0 8px; color: #a5afbd; }
.page-footer button { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #5e728b; border: none; background: none; padding: 8px 0 8px 8px; }
.page-footer button .icon { width: 14px; height: 14px; }
dialog { padding: 35px; border: 1px solid #d5dfea; border-radius: 16px; max-width: 440px; width: calc(100% - 40px); color: var(--ink); box-shadow: 0 25px 100px #102e5530; }
dialog::backdrop { background: #142b4755; backdrop-filter: blur(4px); }
.dialog-close { display: grid; place-items: center; width: 32px; height: 32px; position: absolute; top: 15px; right: 15px; border: none; background: #f1f4f8; border-radius: 50%; color: #6b7d92; }
.dialog-close .icon { width: 16px; height: 16px; }
.dialog-icon { display: inline-flex; color: var(--blue); background: #edf2f8; padding: 10px; border-radius: 12px; }
dialog h2 { font-size: 23px; margin: 17px 0 10px; }
.dialog-intro, .help-item p { font-size: 12px; line-height: 1.95; color: #637286; }
.help-item { margin-top: 22px; }
.help-item h3 { font-size: 13px; margin: 0 0 6px; }
.help-item p { margin: 0; }
.dialog-done { width: 100%; height: 42px; margin-top: 27px; background: var(--blue); color: #fff; border: none; border-radius: 7px; font-size: 12px; }
.noscript-notice { position: fixed; bottom: 0; padding: 16px; background: #fff4f3; width: 100%; margin: 0; text-align: center; }
.register-mode .form-panel { padding-top: 32px; padding-bottom: 30px; }
.register-mode .form-heading { margin-bottom: 24px; }
.register-mode .field { margin-bottom: 15px; }
.register-mode .form-options { margin: 0 0 15px; }
.register-mode .join-divider { margin-top: 19px; margin-bottom: 14px; }
.register-mode .access-note { margin-top: 18px; }
@media (min-width: 1500px) and (min-height: 850px) {
  .topbar { min-height: 112px; }
  .login-shell { margin-top: 22px; }
  .story-content { padding-top: 52px; padding-bottom: 35px; }
  .journey-art { height: 176px; margin-top: 26px; }
  .feature-grid { gap: 27px; }
  .daily-note { margin-top: 35px; }
}
@media (max-width: 1100px) {
  .topbar { padding: 25px 30px; }
  .login-shell, .page-footer { width: calc(100% - 60px); }
  .story-content { padding: 38px 32px 26px; }
  .form-panel { padding: 40px 32px; }
  h1 { font-size: 34px; }
  .feature-grid { gap: 22px 14px; }
  .feature { gap: 8px; }
  .feature p { font-size: 12px; }
  .daily-note p { font-size: 12px; }
}
@media (max-width: 860px) {
  .topbar { min-height: 100px; }
  .private-label { font-size: 10px; }
  .brand-pair { gap: 18px; }
  .domain-logo { width: 170px; }
  .domain-wordmark { font-size: 24px; }
  .partner-logo { width: 150px; }
  .login-shell { grid-template-columns: .95fr 1fr; }
  .story-content { padding: 36px 24px 26px; }
  .eyebrow { letter-spacing: 1px; font-size: 10px; margin-bottom: 25px; }
  h1 { font-size: 28px; letter-spacing: 0; }
  .story-description { font-size: 12px; line-height: 1.85; }
  .journey-art { height: 142px; margin-top: 20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .feature h2 { font-size: 12px; margin-bottom: 3px; }
  .feature p { font-size: 12px; }
  .feature-icon { width: 29px; height: 29px; }
  .daily-note { margin-top: 23px; }
  .quote-controls { display: none; }
  .form-panel { padding: 35px 27px; }
  .form-heading h2 { font-size: 25px; }
  .form-heading p { font-size: 11px; }
}
@media (max-width: 680px) {
  .topbar { padding: 23px 22px; min-height: 85px; }
  .brand-pair { gap: 17px; }
  .domain-logo { width: 144px; }
  .domain-wordmark { font-size: 23px; letter-spacing: -1.2px; }
  .domain-extension { font-size: 8px; letter-spacing: .6px; }
  .brand-cross { font-size: 17px; }
  .partner-logo { width: 132px; }
  .private-label { display: none; }
  .login-shell { width: calc(100% - 32px); margin-top: 0; grid-template-columns: 1fr; border-radius: 15px; }
  .story-content { padding: 26px 25px 22px; }
  .eyebrow { margin-bottom: 15px; font-size: 9px; }
  h1 { font-size: 29px; line-height: 1.5; }
  .story-description { font-size: 12px; margin-top: 11px; }
  .journey-art { height: 118px; margin-top: 17px; }
  .art-label-top { top: 10px; left: 12px; }
  .path-caption { bottom: 7px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px 15px; margin-top: 22px; }
  .feature-icon { width: 26px; height: 26px; border-radius: 7px; }
  .feature-icon .icon { width: 15px; height: 15px; }
  .feature { gap: 7px; }
  .feature h2 { font-size: 12px; }
  .feature p { font-size: 12px; white-space: normal; }
  .daily-note { padding-top: 16px; margin-top: 20px; min-height: 34px; }
  .daily-note p { font-size: 12px; }
  .note-mark { font-size: 23px; }
  .form-panel { padding: 31px 25px; order: -1; }
  .form-container { max-width: 420px; }
  .form-kicker { font-size: 10px; }
  .form-heading { margin-bottom: 25px; }
  .form-heading h2 { font-size: 26px; margin-top: 8px; }
  .form-heading p { font-size: 12px; }
  .page-footer { width: calc(100% - 44px); margin: 16px auto 22px; font-size: 9px; align-items: flex-start; }
  .page-footer>span { max-width: 240px; line-height: 1.8; }
  .page-footer button { white-space: nowrap; padding-top: 2px; }
  .footer-separator { padding: 0 3px; }
  .register-mode .form-panel { padding: 27px 25px; }
}
@media (max-width: 360px) {
  .topbar { padding-left: 18px; padding-right: 18px; }
  .domain-wordmark { font-size: 20px; }
  .domain-extension { font-size: 7px; }
  .partner-logo { width: 112px; }
  .brand-pair { gap: 12px; }
  .domain-logo { width: 124px; }
  h1 { font-size: 25px; }
  .story-content, .form-panel { padding-left: 20px; padding-right: 20px; }
  .feature-grid { gap: 14px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .journey-trace { display: none; }
}
