/* Shared account styles, scoped to these three pages. */
.zf-auth {
  --auth-accent: #087f70;
  --auth-ink: #203d37;
  --auth-muted: #52695e;
  --auth-line: #dce7e1;
  color: var(--auth-ink);
  background: #f6f8f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.zf-auth .zf-navbar { box-shadow: 0 1px 0 var(--auth-line); }
.zf-auth .zf-navbar .button { border-radius: 8px; }
.zf-auth .zf-navbar .button.is-primary { background: var(--auth-accent); }
.zf-auth .auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 3.5rem);
  padding: 48px 24px;
  background: radial-gradient(ellipse at 8% 20%, #e6efe4 0, transparent 45%), radial-gradient(ellipse at 95% 90%, #e8eee2 0, transparent 40%);
}
.zf-auth .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1080px;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 70px #203d370a;
}
.zf-auth .auth-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 44px 30px;
  background: radial-gradient(ellipse at 100% 60%, #d9e7d4, transparent 65%), linear-gradient(135deg, #edf4ed, #f4f6ec);
}
.zf-auth .auth-back { align-self: flex-start; color: var(--auth-muted); font-size: 13px; }
.zf-auth .auth-back:hover { color: var(--auth-accent); }
.zf-auth .auth-story-copy { margin-top: 52px; }
.zf-auth .auth-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--auth-accent); font-size: 12px; font-weight: 600; letter-spacing: 3px; }
.zf-auth .auth-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--auth-accent); box-shadow: 0 0 0 4px #087f700c; }
.zf-auth .auth-story h2 { margin: 20px 0 16px; font-size: clamp(28px, 3vw, 38px); font-weight: 750; line-height: 1.55; letter-spacing: -1px; }
.zf-auth .auth-story h2 span { color: var(--auth-accent); }
.zf-auth .auth-story-description { color: var(--auth-muted); font-size: 13px; line-height: 2; }
.zf-auth .auth-story-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid #cdddcf; color: var(--auth-muted); font-size: 12px; }

/* Resource cards drawn locally, without image requests. */
.zf-auth .auth-art { position: relative; width: 100%; max-width: 360px; height: 260px; margin: 24px auto 32px; pointer-events: none; }
.zf-auth .auth-orbit { position: absolute; top: 4px; left: 47px; width: 250px; height: 250px; border: 1px solid #b6cdbb80; border-radius: 50%; }
.zf-auth .auth-orbit::after { content: ""; position: absolute; inset: 30px; border: 1px dashed #b6cdbb90; border-radius: 50%; }
.zf-auth .auth-art-note { position: absolute; top: 13px; right: 0; width: 185px; height: 120px; padding: 20px; transform: rotate(11deg); border: 1px solid #fff; border-radius: 14px; background: #fbfcf4; box-shadow: 0 10px 25px #203d370a; }
.zf-auth .auth-art-note > span { display: block; margin-bottom: 14px; color: #647c60; font: 9px/1.4 monospace; letter-spacing: 1px; }
.zf-auth .auth-art-note > i { display: inline-block; width: 38px; height: 38px; margin-right: -8px; border: 3px solid #fbfcf4; border-radius: 50%; background: #087f70; }
.zf-auth .auth-art-note > i:nth-of-type(2) { background: #b3ca9e; }
.zf-auth .auth-art-note > i:nth-of-type(3) { background: #ebc792; }
.zf-auth .auth-art-code { position: absolute; top: 52px; left: 8px; width: 244px; padding: 18px 22px 20px; transform: rotate(-7deg); border: 1px solid #39594d; border-radius: 14px; background: #203e35; color: #e5eee5; box-shadow: 0 20px 35px #18392c20; }
.zf-auth .auth-window { display: flex; align-items: center; gap: 5px; }
.zf-auth .auth-window i { width: 6px; height: 6px; border-radius: 50%; background: #efaa8c; }
.zf-auth .auth-window i:nth-child(2) { background: #e3cf91; }
.zf-auth .auth-window i:nth-child(3) { background: #91c5a5; }
.zf-auth .auth-window > span { margin-left: auto; color: #a9c5b5; font: 9px monospace; }
.zf-auth .auth-art-code > b { display: block; margin: 14px 0 2px; color: #c5dba5; font: 36px/1.3 Consolas, monospace; }
.zf-auth .auth-art-code > p { font-size: 12px; }
.zf-auth .auth-code-lines { display: grid; gap: 6px; margin-top: 18px; }
.zf-auth .auth-code-lines i { width: 80%; height: 4px; border-radius: 2px; background: #709986; }
.zf-auth .auth-code-lines i:nth-child(2) { width: 55%; background: #a3bca3; }
.zf-auth .auth-code-lines i:last-child { width: 65%; }
.zf-auth .auth-art-tag { position: absolute; right: -2px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 16px 20px; transform: rotate(4deg); border: 1px solid #fff; border-radius: 12px; background: #fffffff5; box-shadow: 0 10px 30px #203d370d; }
.zf-auth .auth-art-tag > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #edf3e7; color: var(--auth-accent); font-size: 24px; }
.zf-auth .auth-art-tag strong { display: block; font-size: 12px; font-weight: 600; }
.zf-auth .auth-art-tag small { display: block; margin-top: 4px; color: var(--auth-muted); font-size: 10px; }
.zf-auth .auth-spark { position: absolute; top: 5px; left: 8px; color: #789b74; font-size: 32px; }

.zf-auth .auth-panel { min-width: 0; padding: 36px 48px 28px; }
.zf-auth .auth-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--auth-line); }
.zf-auth .auth-tabs a { position: relative; padding: 0 4px 14px; color: var(--auth-muted); font-size: 14px; }
.zf-auth .auth-tabs a.is-active { color: var(--auth-accent); font-weight: 600; }
.zf-auth .auth-tabs a.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--auth-accent); }
.zf-auth .auth-panel-back { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--auth-line); }
.zf-auth .auth-heading { margin: 28px 0 26px; }
.zf-auth .auth-kicker { margin-bottom: 8px; color: var(--auth-accent); font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.zf-auth .auth-heading h1 { margin-bottom: 8px; color: var(--auth-ink); font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
.zf-auth .auth-heading > p:last-child { color: var(--auth-muted); font-size: 13px; line-height: 1.7; }
.zf-auth .auth-form .field { margin-bottom: 19px; }
.zf-auth .auth-form .label { margin-bottom: 8px; color: var(--auth-ink); font-size: 13px; font-weight: 600; }
.zf-auth .auth-form .input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--auth-line); border-radius: 9px; background: #fbfcfb; color: var(--auth-ink); box-shadow: none; font-size: 14px; transition: border-color .18s, box-shadow .18s, background .18s; }
.zf-auth .auth-form .input::placeholder { color: #63766d; font-size: 13px; }
.zf-auth .auth-form .input:hover { border-color: #b3cbbd; }
.zf-auth .auth-form .input:focus { outline: 0; border-color: var(--auth-accent); background: #fff; box-shadow: 0 0 0 3px #087f7014; }
.zf-auth .auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; align-items: start; gap: 10px; }
.zf-auth .auth-code-row > .control { min-width: 0; }
.zf-auth .auth-captcha { height: 48px; overflow: hidden; border-radius: 9px; }
.zf-auth .auth-captcha img { display: block; width: 100%; height: 48px; border: 1px solid var(--auth-line); border-radius: 9px; object-fit: fill; cursor: pointer; box-shadow: none; }
.zf-auth .auth-help { margin-top: 7px; color: var(--auth-muted); font-size: 11px; line-height: 1.6; }
.zf-auth .auth-send-code { width: 100%; height: 48px; padding: 0 8px; border: 1px solid #cce1d7; border-radius: 9px; background: #eff6f1; color: var(--auth-accent); font-size: 12px; font-weight: 600; }
.zf-auth .auth-send-code:hover, .zf-auth .auth-send-code:focus { border-color: #a7cbb9; background: #e4f0e9; color: #055f53; }
.zf-auth .auth-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 23px; font-size: 12px; }
.zf-auth .auth-options .checkbox { display: flex; align-items: center; gap: 7px; color: var(--auth-muted); }
.zf-auth .auth-options input { width: 14px; height: 14px; accent-color: var(--auth-accent); }
.zf-auth .auth-submit.button { display: flex; justify-content: center; gap: 14px; height: 48px; margin-top: 8px; border: 0; border-radius: 9px; background: var(--auth-accent); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 14px #087f7018; transition: background .18s, box-shadow .18s; }
.zf-auth .auth-submit.button:hover, .zf-auth .auth-submit.button:focus { background: #066b5e; color: #fff; box-shadow: 0 8px 18px #087f7025; }
.zf-auth .auth-submit > span { font-size: 19px; font-weight: 400; }
.zf-auth .auth-switch { margin-top: 20px; color: var(--auth-muted); text-align: center; font-size: 12px; }
.zf-auth .auth-switch a { margin-left: 6px; font-weight: 600; }
.zf-auth .auth-panel-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); text-align: center; font-size: 11px; }
.zf-auth .zf-footer { background: #203e35; font-size: 12px; line-height: 1.9; }
.zf-auth .zf-footer .image { float: none !important; margin-left: auto; }

@media (max-width: 1023px) {
  .zf-auth .auth-main { padding: 32px 20px; }
  .zf-auth .auth-story { padding: 30px; }
  .zf-auth .auth-panel { padding: 30px; }
  .zf-auth .auth-story h2 { font-size: 29px; }
  .zf-auth .auth-art { transform: scale(.85); transform-origin: center; }
}
@media (max-width: 767px) {
  .zf-auth .auth-main { display: block; min-height: auto; padding: 20px 16px 32px; }
  .zf-auth .auth-shell { max-width: 520px; margin: 0 auto; grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .zf-auth .auth-story { padding: 22px 26px 24px; }
  .zf-auth .auth-story-copy { margin-top: 24px; }
  .zf-auth .auth-eyebrow { font-size: 10px; letter-spacing: 2px; }
  .zf-auth .auth-story h2 { margin: 10px 0 0; font-size: 26px; line-height: 1.5; }
  .zf-auth .auth-story h2 br { display: none; }
  .zf-auth .auth-story-description, .zf-auth .auth-art, .zf-auth .auth-story-footer { display: none; }
  .zf-auth .auth-panel { padding: 26px; }
  .zf-auth .auth-heading { margin: 24px 0; }
  .zf-auth .auth-heading h1 { font-size: 25px; }
  .zf-auth .auth-form .input { font-size: 16px; }
}
@media (max-width: 374px) {
  .zf-auth .auth-main { padding: 14px 10px 24px; }
  .zf-auth .auth-story, .zf-auth .auth-panel { padding: 22px 18px; }
  .zf-auth .auth-story h2 { font-size: 23px; }
  .zf-auth .auth-code-row { grid-template-columns: minmax(0, 1fr) 124px; gap: 8px; }
  .zf-auth .auth-form .input { padding: 0 10px; }
  .zf-auth .auth-form .input::placeholder { font-size: 11px; }
  .zf-auth .auth-send-code { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-auth .auth-form .input, .zf-auth .auth-submit.button { transition: none; }
}
