:root {
  --ink: #263c35;
  --muted: #78827b;
  --green: #285c50;
  --green-dark: #1e493e;
  --cream: #f6f5ef;
  --line: #e5e8df;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #80ac98; outline-offset: 4px; }
.login-page { min-height: 100svh; display: grid; place-items: center; padding: 40px 28px; }
.login-shell { width: min(1056px, 100%); min-height: 690px; display: grid; grid-template-columns: 1fr 1fr; background: #fffefa; border: 1px solid #e6e8df; border-radius: 24px; box-shadow: 0 18px 65px #253e3410; overflow: hidden; }
.intro-panel { position: relative; display: flex; flex-direction: column; padding: 43px 48px 30px; background: #eaf0e7; overflow: hidden; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; font-size: 24px; font-weight: 650; letter-spacing: 3px; }
.brand-mark { position: relative; display: block; width: 38px; height: 38px; border-radius: 11px; background: var(--green); }
.brand-mark span { position: absolute; top: 11px; width: 4px; height: 17px; background: #f4f6ec; border-radius: 3px; transform: rotate(22deg); }
.brand-mark span:nth-child(1) { left: 10px; height: 10px; top: 16px; }
.brand-mark span:nth-child(2) { left: 17px; }
.brand-mark span:nth-child(3) { left: 24px; height: 10px; }
.brand-english { display: block; margin-top: 3px; font-size: 8px; line-height: 1; letter-spacing: 2.1px; font-weight: 500; color: #5a7164; }
.intro-body { padding-top: 62px; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 2px; color: #698171; }
.intro-body h1 { margin: 18px 0 17px; font-size: clamp(32px, 3.8vw, 45px); line-height: 1.5; font-weight: 500; letter-spacing: 3px; }
.intro-copy { margin: 0; color: #6e7e70; font-size: 13px; line-height: 1.95; letter-spacing: 1px; }
.calendar-art { max-width: 306px; margin: 33px 0 26px 24px; padding: 19px 21px 15px; border: 1px solid #fff; border-radius: 15px; background: #fffefaeb; box-shadow: 0 10px 25px #465c3b0c; transform: rotate(-5deg); }
.art-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.art-month { font-size: 11px; font-weight: 600; color: #506554; letter-spacing: .3px; }
.art-dots { color: #8c9b88; letter-spacing: 2px; }
.art-weekdays, .art-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; text-align: center; }
.art-weekdays { margin-bottom: 8px; font-size: 9px; color: #a2a99d; }
.art-grid span { height: 27px; display: grid; place-items: center; border-radius: 8px; color: #7b8779; font-size: 10px; }
.art-grid .art-day-active { color: white; background: var(--green); }
.art-grid .art-day-soft { color: #637e55; background: #e9eedf; }
.art-bottom { display: flex; align-items: center; gap: 7px; padding-top: 13px; margin-top: 12px; border-top: 1px solid #eceee6; color: #8a9585; font-size: 9px; }
.tiny-leaf { display: block; width: 10px; height: 6px; border-radius: 8px 0 8px 0; background: #90a67b; transform: rotate(-20deg); }
.intro-footer { display: flex; align-items: center; gap: 7px; margin: auto 0 0; color: #7c8c79; font-size: 10px; letter-spacing: 1px; }
.small-dot { width: 5px; height: 5px; border-radius: 50%; background: #91a785; }
.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px 62px 27px; }
.form-inner { margin: auto 0; padding: 24px 0; }
.section-tag { display: inline-block; color: #7b8a7e; font-size: 11px; letter-spacing: 1px; }
.form-inner h2 { margin: 14px 0 12px; font-size: 30px; letter-spacing: 1px; font-weight: 550; }
.form-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.login-form { margin-top: 35px; }
.field-group { margin-bottom: 22px; }
.field-group label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; }
.field-group input { width: 100%; height: 49px; border: 1px solid #dfe4db; border-radius: 8px; padding: 0 14px; color: var(--ink); background: #fcfcf8; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field-group input::placeholder { color: #a4aaa1; }
.field-group input:focus { border-color: #7da58e; box-shadow: 0 0 0 3px #7da58e20; background: white; }
.field-group input:disabled { background: #f2f3ed; color: #90978c; }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 6px; color: #889587; background: transparent; }
.password-toggle:hover { background: #eff2e9; color: var(--green); }
.password-toggle:disabled { opacity: .45; }
.eye-icon { width: 19px; height: 19px; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.primary-button { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; min-height: 49px; margin-top: 29px; border: 1px solid var(--green); border-radius: 8px; color: #fff; background: var(--green); font-size: 13px; font-weight: 500; letter-spacing: 2px; transition: background .15s, transform .15s; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { opacity: .6; }
.button-arrow { position: absolute; right: 17px; font-size: 19px; font-weight: 400; }
.form-progress { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.private-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; color: #919a8d; font-size: 10px; line-height: 1.5; }
.private-note svg { width: 15px; height: 15px; flex-shrink: 0; }
.form-footer { margin: 0; text-align: center; color: #9bA294; font-size: 9px; letter-spacing: .5px; }
.form-footer span, .home-footer span { margin: 0 8px; color: #bcc3b5; }
.notice { padding: 11px 13px; margin-top: 22px; font-size: 12px; line-height: 1.7; border-radius: 7px; }
.notice-error { background: #faf0eb; color: #a4503b; border: 1px solid #efd8cc; }
.notice-info { background: #eef3e9; color: #637951; border: 1px solid #dce5d3; }
.notice-success { background: #edf4ed; color: #356743; border: 1px solid #d3e5d3; }
.notice + .login-form { margin-top: 23px; }
.auth-switch { margin: 5px 0 0; text-align: center; color: #7b8776; font-size: 12px; line-height: 1.8; }
.auth-switch a { margin-left: 5px; color: var(--green); font-weight: 600; text-underline-offset: 4px; text-decoration-color: #a9bdad; }
.auth-switch a:hover { color: var(--green-dark); text-decoration-color: currentColor; }
.field-hint { margin: 7px 0 0; color: #83907d; font-size: 10px; line-height: 1.65; }
.register-shell .form-panel { padding-top: 30px; }
.register-shell .form-inner { padding-top: 10px; padding-bottom: 20px; }
.register-form { margin-top: 24px; }
.register-form .field-group { margin-bottom: 17px; }
.register-form .primary-button { margin-top: 23px; }
.home-page { min-height: 100svh; display: flex; flex-direction: column; }
.home-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 94px; padding: 20px max(28px, calc((100% - 1080px) / 2)); border-bottom: 1px solid var(--line); background: #fffefa; }
.home-header .brand { font-size: 22px; }
.home-header .brand-mark { width: 36px; height: 36px; }
.account-controls { display: flex; align-items: center; gap: 22px; min-width: 0; }
.account-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #657265; }
.text-button { min-height: 40px; padding: 7px 12px; color: #657265; background: transparent; border: 1px solid #dce3d7; border-radius: 7px; white-space: nowrap; font-size: 11px; }
.text-button:hover { color: var(--green); border-color: #96ad9d; background: #f1f4ed; }
.home-main { width: min(100%, 1024px); margin: 0 auto; padding: 65px 28px 80px; }
.home-main h1 { margin: 19px 0 13px; font-size: clamp(25px, 4vw, 35px); font-weight: 500; letter-spacing: 1px; overflow-wrap: anywhere; }
.home-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.welcome-card { display: flex; gap: 22px; margin-top: 38px; padding: 33px; background: #edf2e9; border: 1px solid #dce5d5; border-radius: 15px; }
.success-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; color: var(--green); background: #dae8d7; border-radius: 50%; }
.success-icon svg { width: 25px; height: 25px; }
.welcome-card .section-tag { color: #6d8366; font-size: 10px; }
.welcome-card h2 { margin: 8px 0 12px; font-size: 22px; font-weight: 500; }
.welcome-card p { max-width: 580px; margin: 0; color: #71816b; font-size: 13px; line-height: 1.9; }
.coming-section { margin-top: 45px; }
.coming-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.coming-heading h2 { margin: 0; font-size: 15px; font-weight: 500; }
.coming-heading > span { color: #929b8c; font-size: 10px; }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 24px; background: #fffefa; border: 1px solid #e2e7dc; border-radius: 12px; }
.feature-number { color: #a0ae97; font-size: 11px; letter-spacing: 1px; }
.feature-card h3 { margin: 17px 0 10px; font-size: 15px; font-weight: 500; }
.feature-card p { min-height: 42px; margin: 0; color: #889180; font-size: 12px; line-height: 1.8; }
.feature-status { display: inline-block; margin-top: 20px; padding: 4px 8px; color: #8b9583; background: #f2f4ed; border-radius: 4px; font-size: 9px; }
.home-footer { margin-top: auto; padding: 23px; text-align: center; color: #98a08f; font-size: 10px; }
.account-nav-link { color: var(--green); font-size: 12px; text-decoration: none; white-space: nowrap; }
.account-nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.inline-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--green); font-size: 12px; font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 27px; margin-top: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.account-overview h2 { margin: 0 0 9px; color: #819079; font-size: 11px; font-weight: 500; }
.overview-username { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.signed-in-status { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; color: #69815d; font-size: 10px; }
.signed-in-status > span { width: 5px; height: 5px; border-radius: 50%; background: #85a470; }
.settings-main { padding-top: 47px; }
.settings-notice { margin-top: 27px; }
.profile-summary { display: flex; align-items: center; gap: 17px; padding: 24px 29px; margin-top: 29px; background: #edf2e9; border: 1px solid #dce5d5; border-radius: 14px; }
.profile-avatar { width: 43px; height: 43px; display: grid; place-items: center; flex-shrink: 0; color: var(--green); background: #dce7d7; border-radius: 12px; }
.profile-avatar svg { width: 24px; height: 24px; }
.profile-identity { min-width: 0; }
.profile-identity h2 { margin: 0 0 7px; font-size: 10px; font-weight: 400; color: #7b8c72; }
.profile-identity p { margin: 0; color: #38513f; font-size: 16px; overflow-wrap: anywhere; }
.profile-readonly { margin-left: auto; color: #8c9883; font-size: 10px; text-align: right; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; margin-top: 24px; }
.settings-card { padding: 29px; border: 1px solid #e0e6da; border-radius: 14px; background: #fffefa; }
.settings-card h2 { margin: 10px 0 13px; font-size: 23px; font-weight: 500; letter-spacing: .5px; }
.settings-description { margin: 0; color: #829078; font-size: 11px; line-height: 1.9; }
.settings-form { margin-top: 26px; }
.settings-form .field-group { margin-bottom: 20px; }
.settings-form .primary-button { margin-top: 27px; }
.settings-form .form-progress { margin-bottom: -7px; }
.settings-card .notice + .settings-form { margin-top: 22px; }
.email-current { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; margin-top: 18px; padding: 14px; border: 1px solid #e7ebe1; border-radius: 8px; background: #f8f9f3; }
.email-current > span:first-child { width: 100%; color: #909a86; font-size: 10px; }
.email-current p { margin: 0; color: #5b6e51; font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.email-status { display: inline-block; padding: 3px 6px; color: #8d845c; background: #f0ecd9; border-radius: 4px; font-size: 9px; white-space: nowrap; }
.email-caution { margin: 11px 0 0; color: #969479; font-size: 10px; line-height: 1.8; }
@media (max-width: 900px) {
  .intro-panel { padding-right: 32px; padding-left: 32px; }
  .form-panel { padding-right: 38px; padding-left: 38px; }
  .calendar-art { margin-left: 0; }
  .settings-card { padding: 24px; }
}
@media (max-width: 650px) {
  .login-page { display: block; padding: 0; background: #fffefa; }
  .login-shell { display: block; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .intro-panel { padding: 27px 28px 30px; border-radius: 0 0 24px 24px; }
  .brand { font-size: 22px; }
  .intro-body { padding-top: 29px; }
  .intro-body .eyebrow { font-size: 9px; }
  .intro-body h1 { margin: 13px 0 0; font-size: 28px; line-height: 1.5; letter-spacing: 2px; }
  .intro-body h1 br { display: none; }
  .intro-copy, .calendar-art, .intro-footer { display: none; }
  .form-panel { min-height: 490px; padding: 35px 30px 24px; }
  .form-inner { width: min(100%, 400px); margin: auto; padding: 3px 0 24px; }
  .form-inner h2 { margin-top: 11px; font-size: 26px; }
  .login-form { margin-top: 28px; }
  .field-group input { height: 51px; font-size: 16px; }
  .password-toggle { height: 41px; }
  .private-note { font-size: 11px; }
  .form-footer { font-size: 10px; }
  .home-header { min-height: 83px; padding: 20px; gap: 12px; }
  .account-controls { gap: 8px; }
  .account-name { max-width: 90px; font-size: 11px; }
  .home-header .brand { font-size: 20px; gap: 8px; }
  .home-header .brand-english { font-size: 7px; letter-spacing: 1.5px; }
  .home-header .account-name { display: none; }
  .account-nav-link { font-size: 11px; }
  .text-button { padding: 7px 8px; }
  .home-main { padding: 40px 22px 48px; }
  .home-main .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .welcome-card { gap: 14px; margin-top: 30px; padding: 24px 20px; }
  .welcome-card h2 { font-size: 20px; }
  .welcome-card p { font-size: 12px; }
  .success-icon { width: 33px; height: 33px; }
  .success-icon svg { width: 21px; height: 21px; }
  .coming-section { margin-top: 33px; }
  .coming-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { position: relative; padding: 21px; }
  .feature-card h3 { margin-top: 10px; }
  .feature-card p { min-height: 0; padding-right: 20px; }
  .feature-status { position: absolute; top: 21px; right: 21px; margin: 0; }
  .account-overview { padding: 20px; }
  .settings-main { padding-top: 33px; }
  .profile-summary { padding: 20px; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
  .profile-identity { padding-top: 2px; flex: 1; }
  .profile-readonly { width: 100%; margin-left: 55px; text-align: left; }
  .settings-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 19px; }
  .settings-card { padding: 24px 22px; }
  .settings-card h2 { font-size: 22px; }
  .settings-form .field-group input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
