@font-face {
  font-family: "Chaski Inter";
  src: url("../branding/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Chaski Outfit";
  src: url("../branding/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #566068;
  --paper: #faf8f4;
  --accent: #a42614;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 "Chaski Inter", system-ui, sans-serif;
}
.account-header {
  min-height: 70px;
  padding: 16px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dedad1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 650 1.45rem/1 "Chaski Outfit", system-ui, sans-serif;
  letter-spacing: -.04em;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - 70px);
}
.account-card {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: min(100%, 540px);
  padding: 48px clamp(24px, 4vw, 56px);
  justify-self: center;
  overflow-wrap: anywhere;
}
.account-landscape {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  isolation: isolate;
  background: #22312e;
  color: white;
  display: grid;
  align-items: end;
}
.account-landscape img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: -2;
}
.account-landscape::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, #111b1be8, transparent 65%);
  z-index: -1;
}
.landscape-caption { padding: clamp(24px, 5vw, 80px); }
.landscape-caption span { font-size: .8rem; letter-spacing: .08em; }
.landscape-caption p, h1 {
  font-family: "Chaski Outfit", system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.landscape-caption p { font-size: clamp(2.4rem, 4.6vw, 5.2rem); max-width: 14ch; margin: 16px 0 0; }
h1 { font-size: clamp(2.15rem, 3.9vw, 3.5rem); margin: 0 0 16px; font-weight: 620; }
h2, h3 { font-family: "Chaski Outfit", system-ui, sans-serif; }
p { color: inherit; }
.account-subtitle, .account-note { color: var(--muted); }
form { margin-top: 22px; }
form > div { margin: 12px 0; }
label { display: block; margin: 14px 0 5px; font-weight: 600; }
input, button { font: inherit; }
input:not([type="hidden"], [type="submit"], [type="checkbox"], [type="radio"]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #89918f;
  border-radius: 6px;
  color: var(--ink);
  background: white;
}
button, input[type="submit"] {
  width: 100%;
  min-height: 47px;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 650;
  cursor: pointer;
}
button:disabled { background: #686f74; cursor: default; }
button:not(:disabled):hover, input[type="submit"]:hover { background: #852012; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #007b8c; outline-offset: 3px; }
.account-back { display: inline-block; margin-top: 20px; }
.account-card nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
hr { border: none; border-top: 1px solid #d8d7cf; margin: 24px 0; }
.notice, .fs-important, .account-note {
  background: #f0ede6;
  color: #26373c;
  border-inline-start: 3px solid #80786d;
  padding: 12px 15px;
}
.error, [role="alert"], .fs-error-msg { color: #922b1a; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0; }
.recovery-codes li { padding: 8px; background: white; border: 1px solid #d9d5cc; text-align: center; font-family: monospace; }
#qrcode { width: min(100%, 190px); height: auto; padding: 8px; background: white; }
.fs-center { text-align: center; }
.password-field { position: relative; display: block; }
.password-field input { padding-inline-end: 6rem !important; }
.password-field button {
  position: absolute;
  width: auto;
  inset-inline-end: 4px;
  top: 3px;
  margin: 0;
  min-height: 42px;
  background: transparent;
  color: var(--accent);
  font-size: .85rem;
}
.password-field button:hover { background: #f4eee9; }
button, a { transition: background-color .15s, color .15s; }
.google-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-color: #747775;
  color: #1f1f1f;
}
.google-action:not(:disabled):hover { background: #eef3fc; }
.google-action:disabled { background: #eeefed; }
.account-provider-status { color: var(--muted); margin-bottom: 0; }
.account-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: .875rem;
}
.account-separator::before, .account-separator::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d8d7cf;
}
.account-card nav p { margin: 0; }
.account-entry .account-layout { min-height: 100svh; }
.account-entry .account-landscape img { object-position: 61% center; }
.account-entry .account-landscape::after {
  background: linear-gradient(180deg, transparent 44%, #0c211c37 64%, #0a1817db 100%);
}
.account-entry .landscape-caption {
  padding: 32px clamp(32px, 5vw, 88px) clamp(30px, 4vh, 48px);
}
.account-entry .landscape-caption h2 {
  max-width: 15ch;
  margin: 0;
  font: 590 clamp(2.6rem, 4.4vw, 4.65rem)/.99 "Chaski Outfit", system-ui, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.account-entry .landscape-caption h2 span {
  display: block;
  margin-top: 5px;
  color: #ffc6ab;
  font: inherit;
  letter-spacing: inherit;
}
.account-entry .landscape-caption p {
  max-width: 36ch;
  margin-top: 18px;
  color: #fffaf4;
  font: 450 clamp(.95rem, 1.3vw, 1.15rem)/1.5 "Chaski Inter", system-ui, sans-serif;
  letter-spacing: normal;
}
.account-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(ellipse at 90% 4%, #af6c4d1d, transparent 52%),
    radial-gradient(ellipse at 0 100%, #30564b17, transparent 48%),
    var(--paper);
}
.account-orbit {
  --orbit-radius: clamp(122px, 19vw, 235px);
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at 50% 54%, transparent 0 50px, #98725d20 50px 51px
  );
  mask-image: radial-gradient(ellipse at 50% 54%, #000 20%, transparent 86%);
  translate: var(--orbit-x, 0) var(--orbit-y, 0);
  transition: translate 520ms ease-out;
}
.orbit-arc {
  --phase: 28deg;
  --orbit-size: calc(2 * var(--orbit-radius));
  --orbit-sweep: 122deg;
  position: absolute;
  inset: 54% auto auto 50%;
  width: var(--orbit-size);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  rotate: var(--phase);
  background: conic-gradient(transparent 6deg, #ac3f27c0 52deg, transparent 81deg);
  mask-image: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.orbit-arc--middle {
  --phase: 156deg;
  --orbit-size: calc(2 * var(--orbit-radius) + 102px);
  background: conic-gradient(transparent 6deg, #46685d9e 51deg, transparent 79deg);
}
.orbit-arc--outer {
  --phase: 254deg;
  --orbit-size: calc(2 * var(--orbit-radius) + 204px);
  opacity: .8;
}
.orbit-arc { animation: orbit-flow 3.8s cubic-bezier(.17,.65,.31,1) both; }
.orbit-arc--middle { --orbit-sweep: -134deg; }
.orbit-arc--outer { --orbit-sweep: 178deg; }
.account-panel:focus-within .account-orbit {
  opacity: .72;
  transition: opacity .24s, translate .52s ease-out;
}
[data-signup-state="processing"] .account-orbit,
[data-signup-state="received"] .account-orbit {
  translate: 0 0;
  opacity: 1;
}
[data-signup-state="processing"] .orbit-arc {
  animation: orbit-scan 1.25s linear 3 both;
}
[data-signup-state="processing"] .orbit-arc--middle { animation-direction: reverse; }
[data-signup-state="received"] .orbit-arc {
  background: conic-gradient(transparent 6deg, #46685db0 52deg, transparent 81deg);
  animation: orbit-settle .82s cubic-bezier(.2,.78,.3,1) both;
}
.account-mark-check {
  width: 11px;
  height: 21px;
  border: solid #376454;
  border-width: 0 3px 3px 0;
  rotate: 45deg;
  translate: 0 -2px;
  animation: orbit-settle .55s ease-out both;
}
.account-submit-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes orbit-scan {
  to { rotate: calc(var(--phase) + 360deg); }
}
@keyframes orbit-settle {
  from { scale: 1.14; opacity: .25; }
  to { scale: 1; opacity: 1; }
}
.account-entry .account-credentials input[aria-invalid="true"] { border-color: var(--accent); }
.account-entry .account-field-error {
  margin: -4px 0 12px;
  color: #922b1a;
  font-size: .875rem;
  line-height: 1.4;
}
[data-signup-state="processing"] [data-signup-form] button[type="submit"] {
  background: #59524a;
  cursor: progress;
}
.account-entry .account-credentials input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid #a4261466;
  outline-offset: 2px;
}
.account-entry .google-action,
.account-entry .account-credentials [type="submit"],
.account-switch a {
  transition: background-color .18s, color .18s, translate .18s ease-out, box-shadow .18s;
}
@media (hover: hover) {
  .account-entry .google-action:not(:disabled):hover,
  .account-entry .account-credentials [type="submit"]:not(:disabled):hover,
  .account-switch a:hover { translate: 0 -2px; box-shadow: 0 5px 12px #5d39251c; }
}
.account-entry .google-action:active,
.account-entry .account-credentials [type="submit"]:active,
.account-switch a:active { translate: 0 1px; box-shadow: none; }
.account-entry .account-card {
  grid-column: auto;
  grid-row: auto;
  width: min(100%, 438px);
  padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 36px);
  padding-block-end: max(52px, 4vw);
  text-align: center;
  animation: account-arrival 280ms ease-out both;
}
.account-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px #5136231c;
}
.account-entry h1 {
  font-size: clamp(2.15rem, 4.2vw, 3rem);
  letter-spacing: -.04em;
  margin: 0 0 26px;
}
.account-entry form:not([data-google-form]), .account-entry [role="alert"] { text-align: start; }
.account-entry [data-google-form], .account-entry .google-action { margin-top: 0; }
.account-entry .google-action { border-radius: 10px; min-height: 48px; }
.account-credentials p.account-recover { margin: 8px 0 14px; text-align: end; font-size: .875rem; }
.account-credentials input:not([type="hidden"], [type="checkbox"]), .account-credentials button { border-radius: 10px; }
.account-entry .account-credentials .cf-turnstile { margin: 0; }
.account-entry [data-google-form] > .cf-turnstile { margin: 0; }
.account-entry .account-header {
  justify-content: space-between;
  padding: 16px clamp(18px, 3vw, 40px);
  border-bottom: 0;
  gap: 14px;
}
.account-entry .brand { flex-shrink: 0; font-size: clamp(1rem, 1.75vw, 1.4rem); }
.account-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .875rem;
}
.account-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #bdafa1;
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-weight: 640;
  text-decoration: none;
}
.account-switch a:hover { background: #f1ebe2; }
@keyframes account-arrival {
  from { opacity: .88; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orbit-flow {
  from { opacity: .22; rotate: calc(var(--phase) - var(--orbit-sweep)); }
  to { opacity: 1; rotate: var(--phase); }
}
@media (max-width: 1180px) {
  .account-entry .account-switch span { display: none; }
}
@media (max-width: 720px) {
  .account-layout { display: flex; flex-direction: column; min-height: auto; }
  .account-header { min-height: 60px; padding: 12px 20px; }
  .account-card { padding: 32px 20px; }
  .account-landscape { min-height: 145px; }
  .landscape-caption { padding: 20px; }
  .landscape-caption p { margin: 5px 0 0; font-size: 1.6rem; max-width: none; }
  .account-entry .account-layout { min-height: 100svh; }
  .account-panel { min-height: 390px; flex: 1 0 auto; }
  .account-entry .account-landscape { min-height: clamp(175px, 34svh, 274px); }
  .account-entry .landscape-caption { padding: 22px; }
  .account-entry .landscape-caption h2 { font-size: clamp(1.8rem, 7.1vw, 2.6rem); }
  .account-entry .landscape-caption p { margin-top: 10px; font-size: .9rem; }
  .account-entry .account-header { min-height: 64px; padding: 10px 16px; gap: 10px; }
  .account-entry .brand { font-size: clamp(1rem, 4.6vw, 1.25rem); gap: 5px; }
  .account-entry .brand img { width: 27px; height: 27px; }
  .account-switch span { display: none; }
  .account-switch a { padding-inline: 10px; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; }
}
