/* Public account forms share the landing page's paper, ink, mint and editorial serif. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/landing/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --auth-paper: #f4f7f6;
  --auth-ink: #0f2630;
  --auth-muted: #4e676f;
  --auth-teal: #0b6b5d;
  --auth-mint: #7be0c9;
  --auth-line: #bccbc9;
}
.account-layout { color: var(--auth-ink); }
.account-header {
  width: 100%;
  background: transparent;
  color: var(--auth-ink);
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  gap: 1rem;
}
.account-header a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.account-header .home-logo img { display: block; width: 8.625rem; height: auto; }
.account-header nav { display: flex; gap: 1.45rem; }
.account-header nav a { color: var(--auth-muted); font-size: .88rem; font-weight: 550; }
.account-header nav a:hover { color: var(--auth-teal); text-decoration: underline; text-underline-offset: .22em; }
.account-layout :focus-visible { outline: 3px solid var(--auth-teal); outline-offset: 3px; }
.account-layout ::selection { background: #b5eedf; color: #0f2630; }
.account-layout:has(.auth-shell) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--auth-paper);
  font-family: "Geist", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.account-layout:has(.auth-shell) .account-column { display: flex; flex-direction: column; min-width: 0; }
.account-layout:has(.auth-shell) .account-header {
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1.5rem, 4.4vw, 4.5rem) 1.25rem;
}
.auth-shell {
  width: min(100% - 3rem, 25rem);
  max-width: none;
  margin: auto;
  padding: clamp(2.65rem, 7vh, 5rem) 0 clamp(3.5rem, 11vh, 8rem);
}
.auth-shell h1 {
  color: var(--auth-ink);
  margin: 0;
  font-size: clamp(3.1rem, 4.5vw, 4.25rem);
  font-weight: 560;
  letter-spacing: -.04em;
  line-height: 1.03;
  text-wrap: balance;
}
.auth-shell h1 em, .auth-study h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.auth-shell h1 em { color: var(--auth-teal); }
#authDescription, #verifyNotice {
  margin: .8rem 0 0;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.auth-shell section {
  min-width: 0;
  padding: 0;
  margin: 1.9rem 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.auth-shell #message:not(:empty) {
  margin: 1.25rem 0 0;
  padding: .8rem 1rem;
  border-left: 3px solid #1d7064;
  border-radius: 0 .4rem .4rem 0;
  background: #e1efeb;
  color: #164c43;
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.auth-shell #message[data-kind="error"]:not(:empty) {
  border-color: #a8452f;
  background: #fae9e1;
  color: #7e3527;
}
.auth-shell #verifyNotice { margin-bottom: 1.25rem; }
.auth-shell form { display: grid; gap: 1.15rem; max-width: none; }
.auth-field { display: grid; min-width: 0; gap: .42rem; }
.auth-shell label {
  margin: 0;
  color: var(--auth-ink);
  font-size: .93rem;
  line-height: 1.45;
  font-weight: 600;
}
.auth-shell input {
  width: 100%;
  min-height: 3.15rem;
  padding: .74rem .9rem;
  color: var(--auth-ink);
  background: #fff;
  border: 1px solid #91a7a7;
  border-radius: .6rem;
  font: inherit;
  caret-color: var(--auth-teal);
}
.auth-shell input::placeholder { color: #596e75; }
.auth-shell input:focus-visible { border-color: var(--auth-teal); outline-width: 2px; outline-offset: 2px; }
.auth-shell input:user-invalid { border-color: #a8452f; }
.auth-shell input:autofill { background-color: #ecf6f1; }
.auth-shell .field-caption { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.auth-shell a { color: var(--auth-teal); font-weight: 620; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.auth-shell a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.field-caption a { position: relative; font-size: .84rem; text-decoration: none; }
.field-caption a::before, .auth-switch a::before, .auth-recovery > a::before { content: ""; position: absolute; inset: -.46rem 0; }
.password-entry { position: relative; }
.password-entry input { padding-right: 4.4rem; }
.password-entry button {
  position: absolute;
  right: .12rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 3.8rem;
  min-height: 44px;
  padding: .4rem;
  border: 0;
  background: transparent;
  color: var(--auth-teal);
  font-size: .83rem;
  font-weight: 650;
}
.auth-shell .field-hint { margin: .05rem 0 0; color: var(--auth-muted); font-size: .85rem; }
.auth-shell .primary-button, .auth-shell #verifyControls button, .auth-shell #password button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 3.15rem;
  width: 100%;
  border: 1px solid var(--auth-ink);
  border-radius: .65rem;
  background: var(--auth-ink);
  color: #fff;
  font-size: .98rem;
  font-weight: 620;
  transition: background .18s, border-color .18s;
}
.auth-shell .primary-button { margin-top: .25rem; }
.auth-shell .primary-button span { color: var(--auth-mint); font-size: 1.25em; line-height: 1; }
.auth-shell .primary-button:not(:disabled):hover, .auth-shell #verifyControls button:hover, .auth-shell #password button:hover {
  background: #194b4d;
  border-color: #194b4d;
}
.auth-shell button:disabled { opacity: .62; cursor: default; }
.auth-shell [aria-busy="true"] button:disabled { cursor: wait; }
.auth-alternatives { display: grid; gap: .65rem; margin-top: 1.15rem; }
.auth-or { display: flex; align-items: center; gap: .85rem; margin-bottom: .35rem; color: var(--auth-muted); font-size: .82rem; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; flex: 1; background: #cbd6d3; }
.auth-shell .alternative-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  width: 100%;
  border: 1px solid #98aaa9;
  border-radius: .65rem;
  background: transparent;
  color: var(--auth-ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.auth-shell .alternative-button:hover { background: #e6eeeb; border-color: #6d8583; text-decoration: none; }
.auth-switch {
  margin: 1.65rem 0 0;
  color: var(--auth-muted);
  text-align: center;
  font-size: .92rem;
  line-height: 1.6;
}
.auth-switch a, .auth-recovery > a { position: relative; }
.auth-switch a { display: inline-block; }
.auth-recovery > a { display: inline-block; margin-top: 1.25rem; }
.auth-shell #secret:not(:empty) { margin: 1rem 0; }
.auth-shell #mfa { margin-top: 1rem; }
.auth-shell noscript { display: block; margin-top: 1rem; }
.auth-study { display: none; }
.account-layout:has(.auth-shell) .auth-study {
  display: flex;
  min-width: 0;
  align-self: stretch;
  padding: 1rem 1rem 1rem 0;
}
.auth-study figure {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  min-height: 35rem;
  margin: 0;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #0a202b;
}
.auth-study picture { position: absolute; z-index: -2; inset: 0; }
.auth-study img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 44%; }
.auth-study figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #071820 0%, rgb(7 24 32 / .93) 12%, rgb(7 24 32 / .46) 35%, transparent 62%);
}
.auth-study figcaption { padding: clamp(1.8rem, 4.3vw, 4.1rem); color: #fff; }
.auth-study figcaption p {
  margin: 0 0 .75rem;
  color: #a9eddd;
  font: 600 .71rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.auth-study h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.65rem, 4.1vw, 4.2rem);
  letter-spacing: -.04em;
  font-weight: 510;
  line-height: 1.02;
  text-wrap: balance;
}
.auth-study h2 em { color: #a9eddd; }
.auth-study a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  color: #fff;
  font-size: .92rem;
  font-weight: 570;
  text-decoration: underline;
  text-decoration-color: #769293;
  text-underline-offset: .32em;
}
.auth-study a:focus-visible { outline-color: #a9eddd; }
.auth-study a:hover { text-decoration-color: #fff; }
.forward-arrow { color: var(--auth-mint); }
#accountShell:not(.auth-shell) #authDescription { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .auth-study img { animation: auth-image-reveal .7s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes auth-image-reveal { from { transform: scale(1.022); } to { transform: scale(1); } }
}
@media (max-width: 54.99rem) {
  .account-layout:has(.auth-shell) { display: block; }
  .account-layout:has(.auth-shell) .account-header { padding: 1.1rem clamp(1.25rem, 5vw, 2.5rem); border-bottom: 1px solid #dce5e5; }
  .account-layout:has(.auth-shell) .account-column { min-height: min(47rem, 100svh); }
  .account-layout:has(.auth-shell) .auth-study { display: none; }
  .auth-shell { width: min(100% - 2.5rem, 26rem); margin: 0 auto; padding: clamp(2.7rem, 8vh, 5rem) 0; }
  .auth-shell h1 { font-size: clamp(2.8rem, 8.3vw, 3.9rem); }
}
@media (max-width: 24rem) {
  .account-header nav { gap: .9rem; }
  .auth-shell { width: calc(100% - 2rem); }
  .auth-shell #credentials { gap: 1rem; }
}
@media (max-width: 21rem) {
  .auth-shell:has(.cf-turnstile) { width: calc(100% - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-shell button, .auth-shell a { transition: none; }
}
