:root {
  color-scheme: light;
  --ink: #1e2a34;
  --muted: #7b8790;
  --line: #e5e9eb;
  --blue: #176d78;
  --blue-deep: #125965;
  --mint: #d8ece8;
  --paper: #fbfcfc;
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #edf1f2; color: var(--ink); }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #8fc6c4; outline-offset: 2px; }

.page-shell { width: min(1160px, calc(100% - 56px)); min-height: 700px; margin: clamp(24px, 7vh, 76px) auto; display: grid; grid-template-columns: 1.04fr .96fr; background: var(--paper); border: 1px solid #e3e9e9; border-radius: 24px; overflow: hidden; box-shadow: 0 28px 80px rgba(28, 53, 59, .11); }
.brand-panel { position: relative; display: flex; flex-direction: column; min-height: 700px; padding: 46px 54px 30px; background: #f4f8f7; overflow: hidden; }
.brand-panel::before, .brand-panel::after { position: absolute; content: ""; pointer-events: none; border-radius: 50%; }
.brand-panel::before { width: 480px; height: 480px; right: -212px; top: 170px; border: 1px solid rgba(23,109,120,.12); box-shadow: 0 0 0 36px rgba(23,109,120,.025), 0 0 0 72px rgba(23,109,120,.018); }
.brand-panel::after { width: 220px; height: 220px; left: -140px; bottom: -150px; background: rgba(205, 231, 225, .45); }
.brand-head, .brand-copy, .tool-preview, .brand-foot { position: relative; z-index: 1; }
.brand-head { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; padding: 7px; border-radius: 11px; background: var(--blue); transform: none; }
.brand-logo svg { display: block; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo span { width: 4px; flex: 0 0 4px; border-radius: 2px; background: #fff; transform: none; }
.brand-logo span:nth-child(1) { height: 10px; opacity: .75; }
.brand-logo span:nth-child(2) { height: 15px; opacity: .9; }
.brand-logo span:nth-child(3) { height: 20px; }
.brand-name strong { display: block; font-size: 17px; letter-spacing: .07em; }
.brand-name small { display: block; margin-top: 3px; color: #839097; font: 10px/1.2 "DM Mono", monospace; letter-spacing: .16em; }
.brand-copy { margin-top: 78px; max-width: 430px; }
.eyebrow, .login-kicker { color: #67838a; font: 11px/1.3 "DM Mono", monospace; letter-spacing: .14em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: #5da799; box-shadow: 0 0 0 4px rgba(93,167,153,.13); }
.brand-copy h1 { margin: 20px 0 15px; font-size: clamp(34px, 4vw, 47px); line-height: 1.28; letter-spacing: -.045em; font-weight: 600; }
.brand-copy h1 em { color: var(--blue); font-style: normal; }
.brand-copy > p { max-width: 370px; margin: 0; color: #78848b; font-size: 14px; line-height: 1.9; }
.tool-preview { margin-top: auto; padding-top: 48px; }
.preview-heading { display: flex; align-items: center; gap: 11px; margin: 0 0 13px; color: #718087; font-size: 12px; }
.preview-line { flex: 1; height: 1px; background: #dce5e4; }
.preview-heading small { color: #9aa6aa; font: 11px "DM Mono", monospace; }
.tool-card { display: flex; align-items: center; gap: 14px; min-height: 79px; padding: 15px 16px; margin-bottom: 10px; border: 1px solid #e1e9e7; border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 5px 18px rgba(26,64,66,.025); }
.tool-icon { width: 41px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: #eaf4f2; }
.calculator-icon { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); place-items: center; align-content: center; gap: 1px; padding: 6px; overflow: hidden; font: 12px/1 "DM Mono", monospace; }
.journal-icon { position: relative; font-size: 23px; font-weight: 600; }
.tool-copy { min-width: 0; flex: 1; }
.tool-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.tool-title-row h2 { margin: 0; font-size: 15px; font-weight: 600; }
.access-badge { padding: 3px 7px; border-radius: 20px; font-size: 10px; line-height: 1.3; }
.access-badge.team { color: #427e74; background: #e5f2ed; }
.access-badge.private { color: #707986; background: #edf0f2; }
.tool-copy p { margin: 6px 0 0; color: #88939a; font-size: 12px; }
.tool-arrow, .tool-lock { color: #91a2a5; font-size: 18px; }
.private-card { background: rgba(250,252,251,.55); }
.brand-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 17px; border-top: 1px solid #e1e9e7; color: #8a989d; font-size: 10px; }
.brand-foot span:last-child { font: 9px "DM Mono", monospace; letter-spacing: .12em; }

.login-panel { display: flex; flex-direction: column; padding: 39px 54px 26px; background: #fff; }
.login-topline { display: flex; align-items: center; gap: 8px; align-self: flex-end; color: #75828a; font-size: 12px; }
.secure-mark { color: var(--blue); font-size: 16px; }
.preview-pill { margin-left: 6px; padding: 5px 9px; border-radius: 20px; background: #fff4e7; color: #a36e29; font-size: 10px; }
.login-content { width: min(100%, 360px); margin: auto; padding: 36px 0 45px; }
.login-kicker { color: #6e989a; }
.login-content h2 { margin: 11px 0 8px; font-size: 29px; line-height: 1.35; letter-spacing: -.04em; font-weight: 600; }
.login-intro { margin: 0 0 34px; color: #89949a; font-size: 13px; line-height: 1.7; }
form label { display: block; margin-bottom: 9px; color: #46545c; font-size: 12px; font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; height: 50px; margin-bottom: 22px; border: 1px solid #e1e7e8; border-radius: 10px; background: #fcfdfd; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: #78aaa9; box-shadow: 0 0 0 3px rgba(83,145,145,.1); }
.input-icon { width: 43px; flex: 0 0 auto; color: #8ca2a5; text-align: center; font-size: 17px; }
.input-wrap input { width: 100%; height: 100%; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.input-wrap input::placeholder { color: #b2bcc0; }
.password-label-row { display: flex; align-items: center; justify-content: space-between; }
.password-label-row span { margin-bottom: 9px; color: #9aa5a9; font-size: 10px; }
.toggle-password { margin: 0 11px; padding: 5px; border: 0; background: none; color: #71858a; cursor: pointer; font-size: 11px; }
.submit-button { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: 10px; background: var(--blue); color: white; cursor: pointer; font-size: 14px; font-weight: 600; transition: background .18s, transform .18s; }
.submit-button:hover { background: var(--blue-deep); transform: translateY(-1px); }
.submit-button span { font-size: 18px; font-weight: 400; }
.login-notice { min-height: 30px; margin: 11px 0 0; color: #ac773b; font-size: 11px; line-height: 1.6; }
.account-note { display: flex; gap: 10px; margin-top: 19px; padding: 13px 14px; border: 1px solid #e7eeed; border-radius: 10px; background: #f7faf9; }
.note-icon { width: 17px; height: 17px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #39767a; background: #e2f0ed; font: 11px "DM Mono", monospace; }
.account-note p { margin: 0; color: #7f8c90; font-size: 11px; line-height: 1.65; }
.login-footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 17px; border-top: 1px solid #eef1f1; color: #a1aaae; font-size: 10px; }

@media (max-width: 900px) {
  .page-shell { width: min(620px, calc(100% - 32px)); grid-template-columns: 1fr; margin: 16px auto; }
  .brand-panel { min-height: auto; padding: 30px 32px 24px; }
  .brand-copy { margin-top: 44px; }
  .brand-copy h1 { font-size: 36px; }
  .tool-preview { padding-top: 26px; }
  .brand-foot { margin-top: 18px; }
  .login-panel { min-height: 510px; padding: 25px 32px 22px; }
  .login-content { margin: auto; padding: 28px 0; }
}
@media (max-width: 480px) {
  .page-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .brand-panel { padding: 25px 22px 20px; }
  .brand-copy { margin-top: 37px; }
  .brand-copy h1 { margin-top: 15px; font-size: 33px; }
  .brand-copy > p { font-size: 13px; }
  .tool-card { gap: 11px; padding: 12px; }
  .tool-title-row h2 { font-size: 14px; }
  .tool-copy p { font-size: 11px; }
  .login-panel { min-height: 500px; padding: 23px 22px 20px; }
  .login-content h2 { font-size: 26px; }
}
