/* Account entry: one shared workspace for login and registration. */
.auth-body {
  --auth-link: color-mix(in srgb, var(--accent) 40%, var(--text));
  display: block;
  min-height: 100dvh;
  padding: 0;
  background: var(--bg) !important;
}

.auth-body .auth-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  width: min(1240px, calc(100% - 96px));
  min-height: 100dvh;
  margin-inline: auto;
}

.auth-body .auth-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
}

.auth-body .auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  margin: 0;
}

.auth-body .auth-brand .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: none;
}

.auth-body .auth-brand-copy { display: grid; gap: 1px; }
.auth-body .auth-brand-copy strong {
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
.auth-body .auth-brand-copy small { color: var(--muted); font-size: .76rem; }

.auth-body .auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
  transition: color 160ms ease-out;
}

.auth-body .ui-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.auth-body .auth-home-link .ui-icon { width: 18px; height: 18px; }
.auth-body .auth-intro {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 24px;
  align-self: start;
  padding: clamp(56px, 8vh, 92px) clamp(36px, 5vw, 76px) 48px 0;
}

.auth-body .auth-intro-content { max-width: 430px; }
.auth-body .auth-intro h2 {
  max-width: 13ch;
  margin: 0;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 4.3vw, 3.65rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.auth-body .auth-intro h2 span { color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.auth-body .auth-intro h2 + p {
  max-width: 36ch;
  margin: 24px 0 36px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-body .auth-sections { border-top: 1px solid var(--line); }
.auth-body .auth-sections a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 17px;
  min-height: 88px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease-out;
}
.auth-body .auth-sections a > .ui-icon:first-child { color: var(--accent); }
.auth-body .auth-sections a > span { display: grid; gap: 3px; }
.auth-body .auth-sections strong { font-size: .98rem; font-weight: 700; }
.auth-body .auth-sections small { color: var(--muted); font-size: .81rem; line-height: 1.45; }
.auth-body .auth-sections .auth-section-arrow {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 160ms cubic-bezier(.16, 1, .3, 1), color 160ms ease-out;
}
.auth-body .auth-intro .auth-intro-note { margin: 26px 0 0; font-size: .75rem; color: var(--muted); }

.auth-body .auth-form-region {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 56px 0 56px clamp(36px, 5vw, 76px);
  border-left: 1px solid var(--line);
}
.auth-body .auth-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}
.auth-body .auth-card::before { content: none; }
.auth-body .auth-card h1 {
  margin: 0 0 14px;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.auth-body .auth-card > p { margin: 0 0 30px; line-height: 1.6; }
.auth-body .stack-form { gap: 20px; }
.auth-body .stack-form label { gap: 8px; font-size: .88rem; }
.auth-body .stack-form input,
.auth-body .stack-form select { min-width: 0; width: 100%; min-height: 50px; }
.auth-body .stack-form input { font-size: 1rem; }
.auth-body .stack-form select { font-size: .92rem; }
.auth-body .stack-form label small { font-size: .76rem; line-height: 1.5; }
.auth-body .password-row input { padding-right: 90px; }
.auth-body .password-row button { right: 9px; bottom: 3px; min-height: 44px; font-size: .79rem; }
.auth-body .auth-form-group { display: grid; min-width: 0; gap: 18px; margin: 0; padding: 0; border: 0; }
.auth-body .auth-form-group + .auth-form-group { border-top: 1px solid var(--line); padding-top: 24px; }
.auth-body .auth-form-group legend { float: left; width: 100%; padding: 0; margin: 0; font-size: .84rem; font-weight: 700; color: var(--muted); }
.auth-body .auth-form-group legend + * { clear: both; }
.auth-body .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.auth-body .stack-form > .primary-button {
  min-height: 50px;
  margin-top: 4px;
  justify-content: space-between;
  padding-inline: 18px;
  box-shadow: none !important;
}
.auth-body .auth-card .auth-note { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; font-size: .86rem; }
.auth-body .auth-note a { display: inline-block; padding-block: 4px; color: var(--auth-link); text-decoration: underline; text-underline-offset: 4px; }
.auth-body .form-error { margin: 0 0 22px; }
.auth-body :where(a, button, input, select):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .auth-body .auth-home-link:hover,
  .auth-body .auth-sections a:hover { color: var(--auth-link); }
  .auth-body .auth-sections a:hover .auth-section-arrow { color: var(--accent); transform: translateX(3px); }
}

@keyframes auth-workspace-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-input-method="keyboard"]) .auth-body .auth-intro-content {
    animation: auth-workspace-enter 200ms cubic-bezier(.16, 1, .3, 1);
  }
}
html[data-input-method="keyboard"] .auth-body *,
html[data-input-method="keyboard"] .auth-body *::before,
html[data-input-method="keyboard"] .auth-body *::after { animation: none !important; transition: none !important; }
html[data-input-method="keyboard"] .auth-body :where(a, button):hover,
html[data-input-method="keyboard"] .auth-body :where(a, button):active,
html[data-input-method="keyboard"] .auth-body .auth-section-arrow { transform: none; }

@media (max-width: 880px) {
  .auth-body .auth-workspace { width: min(700px, calc(100% - 48px)); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .auth-body .auth-header { min-height: 90px; }
  .auth-body .auth-form-region { grid-column: 1; grid-row: 2; padding: 48px 0; border-left: 0; }
  .auth-body .auth-intro { grid-column: 1; grid-row: 3; position: static; padding: 32px 0 48px; border-top: 1px solid var(--line); }
  .auth-body .auth-intro-content { max-width: 440px; margin-inline: auto; }
  .auth-body .auth-intro h2 { max-width: 25ch; font-size: 1.7rem; line-height: 1.2; }
  .auth-body .auth-intro h2 + p { max-width: none; margin: 16px 0 24px; font-size: .9rem; }
  .auth-body .auth-sections a { min-height: 78px; }
}

@media (max-width: 480px) {
  .auth-body .auth-workspace { width: calc(100% - 40px); }
  .auth-body .auth-header { min-height: 82px; gap: 10px; }
  .auth-body .auth-brand { gap: 9px; }
  .auth-body .auth-brand .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .auth-body .auth-brand-copy strong { font-size: 1.1rem; }
  .auth-body .auth-brand-copy small { display: none; }
  .auth-body .auth-home-link { gap: 5px; font-size: .76rem; }
  .auth-body .auth-form-region { padding: 36px 0 40px; }
  .auth-body .auth-card > p { margin-bottom: 24px; font-size: .92rem; }
  .auth-body .auth-card h1 { font-size: 2rem; }
  .auth-body .stack-form select { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-body *, .auth-body *::before, .auth-body *::after { animation: none !important; transition: none !important; }
  .auth-body .auth-section-arrow { transform: none !important; }
}
