@font-face {
  font-family: LeafSerif;
  src: url('/static/leaf-latin.woff2') format('woff2');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #20211e;
  --panel: #2d2e29;
  --ink: #eee9dc;
  --muted: #afada2;
  --line: #393b33;
  --field: #20211e;
  --soft: #34362f;
  --primary: #c7ae72;
  --on-primary: #20211e;
  --intro: #34362f;
  --intro-ink: #eee9dc;
  --ring: #c7ae72;
}
:root[data-theme=light] {
  color-scheme: light;
  --page: #fdfcf9;
  --panel: #ffffff;
  --ink: #111c2d;
  --muted: #686e70;
  --line: #e3e5e2;
  --field: #fdfcf9;
  --soft: #ebf0e7;
  --primary: #204d38;
  --on-primary: #ffffff;
  --intro: #ebf0e7;
  --intro-ink: #111c2d;
  --ring: #204d38;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
.site-header {
  max-width: 1160px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font: 30px LeafSerif, Georgia, serif; text-decoration: none; }
.brand-mark { fill: var(--primary); flex-shrink: 0; }
.brand-mark .leaf-vein { stroke: var(--page); }
.leaf-appearance { display: none; }
.download-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 13px; font-weight: 600; }
.download-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  width: min(1040px, calc(100% - 48px));
  margin: 24px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 70px -36px #0005, 0 2px 8px #0001;
  overflow: hidden;
}
.welcome-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px 32px;
  background: var(--intro);
  color: var(--intro-ink);
  overflow: hidden;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span, .welcome-footer span { flex: 0 0 6px; height: 6px; border-radius: 50%; background: currentColor; }
.welcome-panel h2 { margin: 0; font: 52px/1.12 LeafSerif, Georgia, serif; letter-spacing: -1.7px; }
.welcome-panel h2 em { font-weight: 400; }
.welcome-copy { max-width: 290px; margin: 24px 0 0; font-size: 14px; line-height: 1.8; opacity: .85; }
.welcome-footer { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 11px; letter-spacing: .02em; opacity: .8; }
.leaf-art { position: relative; height: 270px; margin: 28px -12px; isolation: isolate; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 260px; height: 260px; }
.orbit-two { width: 330px; height: 330px; }
.art-tile { position: absolute; border-radius: 18px; box-shadow: 0 18px 30px -16px #0005; }
.tile-back { width: 156px; height: 190px; left: calc(50% - 115px); top: 25px; background: var(--panel); border: 1px solid var(--line); transform: rotate(-13deg); }
.tile-back svg { width: 90px; height: 90px; margin: 44px 32px; fill: none; stroke: var(--primary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-front { width: 158px; height: 196px; left: calc(50% - 25px); top: 57px; background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); transform: rotate(9deg); padding: 24px; }
.tile-front svg { width: 38px; height: 38px; margin-bottom: 26px; fill: var(--on-primary); }
.tile-front svg path + path { fill: none; stroke: var(--primary); stroke-width: 1.4; stroke-linecap: round; }
.tile-front span { display: block; font: 19px/1.3 LeafSerif, Georgia, serif; }
.art-spark { position: absolute; font: 24px LeafSerif, Georgia, serif; color: var(--primary); }
.spark-one { top: 14px; right: 30px; }
.spark-two { bottom: 25px; left: 18px; font-size: 18px; }
.account-panel { padding: 42px 52px 28px; min-width: 0; }
.section-label { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 0; font: 36px/1.2 LeafSerif, Georgia, serif; letter-spacing: -1px; }
.account-heading > p:last-child { margin: 10px 0 26px; color: var(--muted); }
.provider-buttons { display: grid; gap: 10px; }
button { min-height: 44px; cursor: pointer; color: inherit; }
.provider-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.provider-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.button-arrow { margin-left: auto; color: var(--muted); font-size: 17px; font-weight: 400; }
.provider-button:hover { border-color: var(--primary); background: var(--soft); box-shadow: 0 2px 6px #0001; }
.provider-notice { margin: 0; color: var(--muted); font-size: 12px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--muted); font-size: 11px; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.form-help { margin: -7px 0 0; text-align: right; font-size: 12px; }
.form-help a, .account-prompt a, .account-details a { color: var(--primary); font-weight: 600; }
.account-prompt { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.account-prompt + .account-prompt { margin-top: 12px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
input { width: 100%; min-width: 0; min-height: 49px; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--field); color: var(--ink); font-size: 13px; font-weight: 400; transition: border-color .15s; }
input::placeholder { color: var(--muted); opacity: .8; }
input:hover { border-color: var(--primary); }
.primary { width: 100%; margin-top: 4px; min-height: 50px; padding: 12px 16px; border: 1px solid transparent; border-radius: 11px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 600; transition: filter .15s; }
.primary:hover { filter: brightness(1.12); }
.secondary { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 12px; }
#send-code { width: 100%; margin-top: 12px; }
button:disabled { opacity: .5; cursor: wait; }
#status { margin: 12px 0; font-size: 12px; overflow-wrap: anywhere; }
#status:empty { margin: 0; }
.account-details { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-details summary { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 32px; color: var(--muted); font-size: 11px; cursor: pointer; list-style: none; }
.account-details summary::-webkit-details-marker { display: none; }
.account-details summary::after { content: '+'; margin-left: 5px; font-size: 15px; }
.account-details[open] summary::after { content: '−'; }
.account-details svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fine { color: var(--muted); font-size: 11px; line-height: 1.7; }
.account-link { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 600; }
#identity { overflow-wrap: anywhere; }
.success-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 50%; color: var(--primary); }
.success-mark svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#signed-in h2 { margin-bottom: 8px; font: 26px LeafSerif, Georgia, serif; }
#signed-in p { color: var(--muted); }
footer { padding: 28px 24px; text-align: center; color: var(--muted); font-size: 11px; }
footer span { padding: 0 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 2; padding: 12px 18px; border-radius: 8px; background: var(--panel); }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
@media (max-width: 900px) and (min-width: 701px) {
  .account-panel { padding: 36px 28px 24px; }
  .welcome-panel { padding: 40px 28px 28px; }
  .welcome-panel h2 { font-size: 44px; }
  .welcome-copy { font-size: 13px; }
  .provider-button { padding-inline: 12px; gap: 10px; font-size: 12px; }
}
@media (max-width: 700px) {
  .site-header { padding: 20px 24px; }
  .account-shell { grid-template-columns: 1fr; max-width: 480px; width: calc(100% - 32px); margin-top: 12px; border-radius: 22px; }
  .welcome-panel { padding: 20px 28px; }
  .eyebrow { margin: 0; font-size: 10px; }
  .welcome-panel h2, .welcome-copy, .leaf-art, .welcome-footer { display: none; }
  .account-panel { padding: 30px 28px 24px; }
  h1 { font-size: 32px; }
  .section-label { display: none; }
  .account-heading > p:last-child { margin-bottom: 24px; font-size: 13px; }
  input { font-size: 16px; }
  footer { padding-block: 24px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 20px; }
  .account-panel, .welcome-panel { padding-inline: 20px; }
  .provider-button { gap: 10px; padding-inline: 12px; font-size: 12px; }
  .button-arrow { display: none; }
  .welcome-panel h2 { font-size: 30px; }
  h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
