/* Shared website language for sign-in, registration and their success states. */
:root {
  --ink: #20241f;
  --ink-2: #40483c;
  --gray: #808579;
  --line: #e5e7df;
  --paper: #f5f4f0;
  --paper-2: #eef2e7;
  --auth-green: #28cb4d;
  --auth-green-dark: #20b341;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --auth-serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

body.auth-page { background: var(--paper); font-family: var(--sans); }
.auth-topbar { position: relative; inset: auto; width: min(1240px, calc(100% - 80px)); height: 74px; margin: 24px auto 0; padding: 0 26px; border: 1px solid #e8e9e3; border-radius: 999px; background: #fff; pointer-events: auto; }
.auth-logo { gap: 9px; }
.auth-logo img { width: 40px; height: 35px; }
.auth-logo b { font: 760 26px/1 var(--sans); letter-spacing: -1.3px; }
.auth-topbar > div { gap: 17px; font-size: 13px; }
.auth-switch { min-height: 40px; padding: 10px 23px; border: 0; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: none; font-size: 13px; transition: background .2s; }
.auth-switch:hover { background: #3d4939; }
.auth-shell { width: min(1100px, calc(100% - 112px)); min-height: min(770px, calc(100vh - 158px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); align-items: center; gap: clamp(60px, 7vw, 110px); padding: 68px 0 75px; }
.auth-story, .register-story { min-width: 0; min-height: 0; display: block; overflow: visible; padding: 0; border: 0; background: transparent; }
.auth-story::before, .auth-story::after { display: none; }
.story-copy { max-width: none; }
.story-copy > p { display: flex; align-items: center; gap: 8px; margin-bottom: 25px; color: #75816c; font: 600 12px/1.5 var(--sans); letter-spacing: .13em; }
.story-copy > p::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #33b94e; }
.story-copy h1 { font: 600 clamp(37px, 3.75vw, 54px)/1.35 var(--auth-serif); letter-spacing: -.045em; }
.story-copy h1 span::after, .register-story .story-copy h1 span::after { height: .11em; bottom: .12em; left: 0; right: -3%; background: #d5edb8; opacity: .85; transform: rotate(-1.8deg); }
.story-copy > small, .register-story .story-copy > small { margin-top: 22px; color: var(--gray); font: 400 14px/1.9 var(--sans); }
.auth-learning-visual { position: relative; width: min(422px, 96%); margin: 40px 0 10px; padding: 22px 24px 23px; border: 1px solid #eeeeea; border-radius: 24px; background: #fff; }
.learning-visual-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #92998a; font-size: 12px; }
.learning-visual-top > span:first-child { display: flex; align-items: center; gap: 6px; }
.learning-visual-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--auth-green); }
.learning-visual-top > span:last-child { flex: 0 0 auto; color: #a4aa9e; }
.learning-curve { width: 100%; height: auto; display: block; margin-top: 19px; }
.learning-visual-steps { display: flex; justify-content: space-between; gap: 8px; padding: 16px 0 0; border-top: 1px solid #eef0e9; color: #939a89; font-size: 12px; }
.learning-visual-steps > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.learning-visual-steps b { color: #a0a794; font-weight: 500; }
.learning-visual-steps .is-current, .learning-visual-steps .is-current b { color: #348344; }
.learning-visual-note { position: absolute; display: flex; align-items: center; gap: 12px; left: 16px; bottom: -61px; width: 267px; padding: 14px 15px; border: 1px solid #eff0e9; border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(44,50,29,.035); transform: rotate(-3deg); }
.learning-visual-note > img { width: 36px; height: 36px; padding: 5px; border-radius: 10px; background: #f1f5e7; }
.learning-visual-note > span { display: grid; gap: 4px; }
.learning-visual-note strong { font-size: 12px; font-weight: 600; }
.learning-visual-note small { color: #a1a597; font-size: 12px; }
.learning-visual-note > b { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #479e54; background: #eaf7e0; font-size: 14px; font-weight: 500; }
.visual-spark { position: absolute; right: -19px; top: -30px; color: #ad8eda; font: 400 62px/1 Georgia,serif; transform: rotate(10deg); }
.auth-panel, .register-page .auth-panel { min-width: 0; min-height: 0; display: block; padding: 0; background: transparent; }
.auth-card { width: 100%; max-width: 460px; padding: 37px 35px 32px; border: 1px solid #e9eae3; border-radius: 24px; background: #fff; box-shadow: 0 8px 32px rgba(38,48,26,.02); }
.auth-eyebrow { color: #929a86; font: 500 12px/1.5 var(--sans); letter-spacing: .05em; }
.auth-card h2, .register-page .auth-card h2 { margin-top: 9px; font-size: 29px; font-weight: 650; line-height: 1.4; letter-spacing: -.045em; }
.auth-subtitle { margin-top: 10px; font-size: 13px; line-height: 1.8; }
.auth-form { gap: 18px; margin-top: 29px; }
.auth-form > label:not(.check-field) { gap: 9px; color: #535b4c; font-size: 12px; font-weight: 500; }
.auth-form input:not([type="checkbox"]), .register-page .auth-form input:not([type="checkbox"]) { height: 48px; padding: 0 14px; border: 1px solid #e3e6dc; border-radius: 10px; background: #fdfdfb; color: var(--ink); font-size: 14px; }
.auth-form input:not([type="checkbox"])::placeholder { color: #a1a798; font-size: 12px; }
.auth-form input:not([type="checkbox"]):focus { border-color: #88bc8a; box-shadow: 0 0 0 3px rgba(40,203,77,.09); background: #fff; }
.password-field button { color: #7a866d; font-size: 12px; }
.code-field button { min-width: 96px; margin: 8px 5px 8px 0; border-left: 1px solid #e3e8dc; border-radius: 0; color: #57844d; background: transparent; font-size: 12px; font-weight: 500; }
.form-meta { gap: 12px; margin-top: -1px; }
.form-meta > button { color: #7a866d; font-size: 12px; }
.check-field { font-size: 12px !important; align-items: center; }
.check-field input { width: 14px; height: 14px; accent-color: var(--auth-green-dark); }
.agreement { align-items: flex-start; }
.agreement input { margin-top: 3px; }
.form-error { min-height: 0; margin: -7px 0 -5px; font-size: 12px; line-height: 1.6; }
.form-error:empty { display: none; }
.form-error a { text-decoration: underline; }
.auth-submit, .register-page .auth-submit { min-height: 49px; padding: 13px 20px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--auth-green); box-shadow: none; font-size: 14px; font-weight: 600; }
.auth-submit > span { color: #fff; margin-left: 8px; font-size: 20px; font-weight: 400; line-height: 1; }
.auth-submit:hover { color: #fff; border-color: transparent; background: var(--auth-green-dark); box-shadow: none; transform: translateY(-1px); }
.auth-submit:disabled { color: #fff; }
.demo-account { grid-template-columns: 1fr auto; gap: 9px; margin-top: 23px; padding: 14px; border: 1px solid #eef0e6; border-radius: 12px; background: #f6f8f1; }
.demo-account > span { grid-column: 1 / -1; width: fit-content; padding: 0; color: #81916f; background: transparent; font: 500 12px var(--sans); letter-spacing: .08em; }
.demo-account p { font-size: 12px; }
.demo-account p b { font-weight: 500; }
.demo-account button { display: block; padding: 7px 9px; border: 1px solid #dfe6d5; border-radius: 7px; color: #5e764d; background: #fff; font-size: 12px; font-weight: 500; }
.auth-footnote { margin-top: 23px; font-size: 12px; }
.auth-footnote a { margin-left: 5px; color: #536c47; font-weight: 500; text-decoration: none; }
.auth-footnote a:hover, .back-home:hover { text-decoration: underline; }
.auto-name-note { margin: 17px 0 0; padding: 10px 12px; border: 0; border-radius: 9px; color: #828b73; background: #f5f7f0; font-size: 12px; line-height: 1.65; }
.auto-name-note span { width: 16px; height: 16px; color: #92a477; background: transparent; font-size: 16px; }
.register-page .auth-shell { padding-top: 45px; padding-bottom: 45px; }
.register-page .auth-card { padding-top: 29px; padding-bottom: 27px; }
.register-page .auth-form { gap: 14px; margin-top: 19px; }
.register-page .auth-footnote { margin-top: 18px; }
.story-benefits { gap: 16px; width: min(420px, 100%); margin-top: 38px; }
.story-benefits li { grid-template-columns: 38px 1fr 24px; gap: 12px; padding: 20px 18px; border: 1px solid #e9ece2; border-radius: 15px; background: #fff; box-shadow: none; }
.story-benefits li:nth-child(2) { margin-left: 0; transform: none; border-color: #e7e0f1; background: #f0ebf7; }
.story-benefits li:nth-child(3) { background: #ebf0e5; border-color: #e2e9d9; }
.story-benefits li > b { width: 33px; height: 33px; color: #8b967a; background: #f3f6ec; font: 500 12px var(--sans); }
.story-benefits li:nth-child(2) > b { color: #9a7abb; background: #e9def6; }
.story-benefits li:nth-child(3) > b { color: #7c9065; background: #dfe8d1; }
.story-benefits li > span { gap: 6px; }
.story-benefits strong { font-size: 14px; font-weight: 500; }
.story-benefits small { color: #949b89; font-size: 12px; line-height: 1.6; }
.story-benefits li > i { color: #8ba675; font: 400 23px Georgia,serif; text-align: center; }
.story-benefits li:nth-child(2) > i { color: #ac8ad3; font-size: 31px; }
.register-story-bottom { display: flex; gap: 24px; margin-top: 26px; color: #959d8b; font-size: 12px; }
.register-story-bottom > span:first-child { display: flex; align-items: center; gap: 6px; }
.register-story-bottom i { width: 5px; height: 5px; border-radius: 50%; background: #7da05e; }
.register-success { padding: 12px 0 6px; }
.register-success > img { width: 74px; height: 61px; padding: 7px; border-radius: 20px; background: #f4f7ec; }
.register-success > p { color: #879774; font: 500 12px/1.6 var(--sans); letter-spacing: .07em; }
.register-success h2 { font-family: var(--auth-serif); font-size: 32px !important; line-height: 1.5; }
.register-success > span, .register-success > small { font-size: 12px; }
.register-success > strong { padding: 9px 17px; border: 1px solid #e2e9d7; border-radius: 999px; background: #f0f5e8; color: #668653; font: 500 14px var(--sans); transform: none; }
.register-success > .register-reward-message { border-color: #dde8d2; background: #f0f5e8; color: #668653; }
.back-home { font-size: 12px; text-decoration: none; }
.auth-page-footer { width: min(1100px, calc(100% - 112px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto 25px; padding-top: 18px; border-top: 1px solid #e5e7df; color: #a0a595; font-size: 12px; }
.auth-page-footer a { color: #7e8972; }
.auth-page-footer a span { margin-left: 6px; }
.auth-toast { right: 24px; bottom: 24px; padding: 14px 18px; border: 1px solid #e1e5d8; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(36,49,25,.08); font-size: 13px; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(101,157,84,.45); outline-offset: 4px; }

@media (max-width: 1100px) {
  .auth-shell { width: calc(100% - 80px); gap: 48px; }
  .auth-card { padding: 30px 27px; }
  .story-copy h1 { font-size: 43px; }
  .auth-page-footer { width: calc(100% - 80px); }
}

@media (max-width: 960px) {
  .auth-topbar { position: relative; }
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding: 65px 0 70px; }
  .auth-story, .register-story { min-height: 0; padding: 0; border: 0; }
  .login-page .story-copy, .register-story .story-copy { max-width: none; }
  .story-copy h1 { font-size: 36px; }
  .story-copy > small, .register-story .story-copy > small { font-size: 13px; }
  .auth-learning-visual { width: 100%; padding: 19px 17px; }
  .learning-visual-top > span:last-child { display: none; }
  .learning-visual-steps { flex-wrap: wrap; }
  .learning-visual-note { left: 8px; width: 247px; }
  .auth-card { padding: 28px 24px; }
  .auth-card h2, .register-page .auth-card h2 { font-size: 25px; }
  .story-benefits { width: 100%; }
  .story-benefits li { grid-template-columns: 30px 1fr; gap: 10px; padding: 18px 13px; }
  .story-benefits li > i { display: none; }
  .story-benefits li > b { width: 29px; height: 29px; }
  .story-benefits strong { font-size: 13px; }
  .register-story-bottom { gap: 16px; }
}

@media (max-width: 760px) {
  .auth-topbar { width: calc(100% - 32px); height: 64px; margin-top: 16px; padding: 0 19px; }
  .auth-logo img { width: 34px; height: 30px; }
  .auth-logo b { font-size: 23px; }
  .auth-topbar > div > span { display: none; }
  .auth-switch { min-height: 35px; padding: 8px 17px; font-size: 12px; }
  .auth-shell, .register-page .auth-shell { width: min(470px, calc(100% - 40px)); display: flex; flex-direction: column; align-items: stretch; gap: 30px; min-height: 0; padding: 43px 0 36px; }
  .auth-story, .register-story { min-height: 0; padding: 0 6px; }
  .story-copy > p { margin-bottom: 17px; font-size: 12px; }
  .story-copy h1 { font-size: 37px; }
  .story-copy > small, .register-story .story-copy > small { margin-top: 15px; font-size: 13px; line-height: 1.8; }
  .auth-learning-visual, .story-benefits, .register-story-bottom { display: none; }
  .auth-panel, .register-page .auth-panel { min-height: 0; padding: 0; }
  .auth-card, .register-page .auth-card { max-width: none; padding: 28px; border-radius: 21px; }
  .auth-card h2, .register-page .auth-card h2 { font-size: 26px; }
  .auth-form { margin-top: 25px; }
  .demo-account { grid-template-columns: 1fr auto; }
  .demo-account button { display: block; }
  .auth-page-footer { width: min(470px, calc(100% - 40px)); margin-bottom: 24px; padding-top: 19px; font-size: 12px; }
  .auth-page-footer > span { max-width: 200px; line-height: 1.7; }
}

@media (max-width: 380px) {
  .auth-topbar { width: calc(100% - 24px); padding: 0 15px; }
  .auth-logo { gap: 6px; }
  .auth-logo img { width: 30px; }
  .auth-logo b { font-size: 21px; }
  .auth-switch { padding: 8px 13px; }
  .auth-shell, .register-page .auth-shell { width: calc(100% - 28px); padding-top: 34px; gap: 25px; }
  .story-copy h1 { font-size: 32px; }
  .story-copy > p { letter-spacing: .04em; }
  .auth-card, .register-page .auth-card { padding: 25px 20px; }
  .auth-card h2, .register-page .auth-card h2 { font-size: 24px; }
  .demo-account { padding: 12px; gap: 7px; }
  .demo-account button { padding: 7px; }
  .auth-page-footer { width: calc(100% - 36px); gap: 12px; }
  .auth-page-footer > span { max-width: 178px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
