/* LF AI — the sign-in page (owner, 2026-11-26: picked C, 大字). Loaded after app.css.
   The name is drawn large in fine particles (login.js) in the space above the form; the form is one
   quiet line under it: two fields with a hairline each, and the button. Few elements, a lot of air.
   Only the tokens of app.css set colour, so light and dark both follow. Nothing here changes how
   signing in works; every id and field of the form is the one app.js already drives. */

.auth { --word: clamp(200px, 48vh, 540px); }                 /* the room kept for the word */
.auth.auth-up { --word: clamp(110px, 22vh, 260px); }         /* creating an account: more fields, a smaller word */
.auth-pt { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; display: block; background: var(--bg); pointer-events: none; }   /* login.js gives it a size of its own in px */
.auth-mark { position: absolute; left: 50%; transform: translateX(-50%); z-index: -1; display: block; color: var(--ink); pointer-events: none; }   /* the still mark, when the particles cannot run */
/* a short window (a phone on its side, a small laptop): less room for the word, so the form stays in view */
@media (max-height: 560px) { .auth { --word: clamp(96px, 30vh, 200px); } .auth.auth-up { --word: clamp(70px, 16vh, 120px); } }

.auth .auth-body { max-width: 940px; margin: var(--word) auto 24px; padding: 0; align-self: start;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; }
.auth .auth-body .display { font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; }
html:lang(zh-CN) .auth .auth-body .display { font-size: 13px; letter-spacing: .3em; }
.auth .auth-body .lede { margin: 0; font-size: 13px; line-height: 1.5; letter-spacing: .06em; color: var(--faint); }
.auth .auth-body .notice { flex: 0 0 100%; margin-top: 14px; padding: 0; border: 0; color: var(--muted); }

.auth .auth-body form { flex: 0 0 100%; margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr 200px; column-gap: 36px; align-items: start; }
.auth .auth-body .field { margin-top: 26px; min-width: 0; }
.auth .auth-body .field > label { height: 20px; line-height: 20px; margin: 0; font-weight: 400; color: var(--muted); }
.auth .auth-body .field input[type="text"], .auth .auth-body .field input[type="password"] {
  min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--faint); border-radius: 0; background: transparent; font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.auth .auth-body .field input:hover, .auth .auth-body .field input:focus { border-bottom-color: var(--ink); }
.auth .auth-body .field input:focus { box-shadow: 0 1px 0 var(--ink); }                       /* the hairline doubles: that is the focus mark */
.auth .auth-body .field input[aria-invalid="true"] { border-bottom-color: var(--danger); }
.auth .auth-body .field input[aria-invalid="true"]:focus { box-shadow: 0 1px 0 var(--danger); }
/* a password manager's fill keeps the page's paper, not its own tint */
.auth .auth-body .field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); -webkit-box-shadow: 0 0 0 100px var(--bg) inset; box-shadow: 0 0 0 100px var(--bg) inset; }
.auth .auth-body .field input:-webkit-autofill:focus { -webkit-box-shadow: 0 1px 0 var(--ink), 0 0 0 100px var(--bg) inset; box-shadow: 0 1px 0 var(--ink), 0 0 0 100px var(--bg) inset; }
.auth .auth-body .pwrap input { padding-right: 56px; }
.auth .auth-body .pwrap .link { right: 0; text-decoration: none; }
.auth .auth-body .pwrap .link:hover { color: var(--ink); }
.auth .auth-body .btn.block { grid-column: 3; grid-row: 1; margin-top: 44px; min-height: 46px; font-size: 13px; letter-spacing: .3em; text-indent: .3em; }   /* its foot sits on the fields' hairline */
.auth .auth-body .ferr.form { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }             /* a refusal goes under the line and moves nothing */
.auth .auth-body .auth-alt { margin-top: 22px; font-size: 13px; }
.auth .auth-body .auth-forgot { margin: 22px 0 0 auto; font-size: 13px; }
.auth .auth-foot { border-top: 0; }

/* creating an account: two fields to a line, the button under them at the right */
.auth.auth-up .auth-body form { grid-template-columns: 1fr 1fr; }
.auth.auth-up .auth-body .ferr.form { grid-row: 3; }
.auth.auth-up .auth-body .btn.block { grid-column: 1 / -1; grid-row: 4; justify-self: end; width: 200px; margin-top: 30px; }

/* phones: the word above, the fields one under another, the button in view without scrolling */
@media (max-width: 700px) {
  .auth { --word: clamp(104px, 21vh, 190px); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .auth.auth-up { --word: clamp(76px, 12vh, 120px); }
  .auth .auth-top { padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: 18px; }
  .auth .auth-foot { padding-top: 18px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .auth .auth-body { margin-left: 12px; margin-right: 12px; width: auto; }
  .auth .auth-body form, .auth.auth-up .auth-body form { grid-template-columns: minmax(0, 1fr); }
  .auth .auth-body .field { margin-top: 22px; }
  .auth .auth-body .ferr.form, .auth.auth-up .auth-body .ferr.form { grid-row: auto; }
  .auth .auth-body .btn.block, .auth.auth-up .auth-body .btn.block { grid-column: auto; grid-row: auto; margin-top: 30px; width: 100%; }
  .auth .auth-body .auth-forgot { flex: 0 0 100%; margin: 8px 0 0; }
}
/* Safari on a phone: vh counts the space under its toolbars, svh does not */
@supports (height: 1svh) {
  .auth { --word: clamp(200px, 48svh, 540px); }
  .auth.auth-up { --word: clamp(110px, 22svh, 260px); }
@media (max-height: 560px) {
  .auth { --word: clamp(96px, 30svh, 200px); }
  .auth.auth-up { --word: clamp(70px, 16svh, 120px); }
}
@media (max-width: 700px) {
  .auth { --word: clamp(104px, 21svh, 190px); }
  .auth.auth-up { --word: clamp(76px, 12svh, 120px); }
}
}

/* the fields one above the other (owner 11-27: 「不要一左一右」): the account on top, then the password, then the
   button, in one centred column on a computer as on a phone; the word in particles stays above them */
.auth .auth-body { max-width: 380px; justify-content: center; text-align: center; }
.auth .auth-body form, .auth.auth-up .auth-body form { grid-template-columns: minmax(0, 1fr); text-align: left; }
.auth .auth-body .btn.block, .auth.auth-up .auth-body .btn.block { grid-column: auto; grid-row: auto; justify-self: stretch; width: 100%; margin-top: 34px; }
.auth .auth-body .ferr.form, .auth.auth-up .auth-body .ferr.form { grid-column: auto; grid-row: auto; }
.auth .auth-body .auth-alt, .auth .auth-body .auth-forgot { flex: 0 0 100%; margin: 18px 0 0; text-align: center; }
.auth .auth-body .auth-forgot { margin-top: 8px; color: var(--faint); }
@media (max-width: 700px) { .auth .auth-body { max-width: none; } }
@media (min-width: 701px) { .auth { --word: clamp(170px, 38vh, 440px); } }   /* the column is taller now: a little less room for the word */
@supports (height: 1svh) { @media (min-width: 701px) { .auth { --word: clamp(170px, 38svh, 440px); } } }

/* look A (owner 11-27, picked A of three): the LF AI mark in particles above the form (login.js), a faint speckle
   over the page, and a round-ended button; the form, its fields and its order stay as they are */
.auth .auth-body .btn.block, .auth.auth-up .auth-body .btn.block { border-radius: 999px; }
.auth .auth-body .btn.block:focus-visible { outline-offset: 3px; }

/* 安装到 Mac (owner 11-30): an outline pill beside EN / 中文 on a computer, full width under 创建账号 on a phone; its note under the form */
.auth .auth-switches { gap: clamp(14px, 2.4vw, 26px); }
.auth .auth-install { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13px;
  font-weight: 500; letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
/* owner 11-30 「more obvious！」: a real button, still second to 登录 (an outline, never a solid fill); hover fills lightly */
.auth .auth-install:hover { background: var(--sel); }
.auth .auth-install:active { transform: translateY(1px); }
.auth .auth-install:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth .auth-install .ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth .auth-body .auth-install-row { display: none; }
.auth .auth-body .auth-install-note { flex: 0 0 100%; margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink); }
@media (max-width: 700px) {
  .auth .auth-top .auth-install { display: none; }
  .auth .auth-body .auth-install-row { display: block; flex: 0 0 100%; margin: 20px 0 0; }
  .auth .auth-body .auth-install-row .auth-install { width: 100%; height: 44px; font-size: 14px; }
  .auth .auth-body .auth-install-row ~ .auth-forgot { margin-top: 16px; }
}
}
