:root{--fs-canvas:#F4F1EB;--fs-surface:#FFFFFF;--fs-text:#18253B;--fs-muted:#536176;--fs-border:#D5DBE3;--fs-primary:#18253B;--fs-onPrimary:#FFFFFF;--fs-link:#A83A18;--fs-controlBorder:#536176;--fs-error:#B33B36;--fs-focus:#18253B;--fs-brandAccent:#F16633;}
@font-face {
  font-family: "DM Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("/api/auth/assets/dm-sans-latin-ext.a5d38fe99f930275.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("/api/auth/assets/dm-sans-latin.9fea608a947e6702.woff2")
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  font:
    16px/1.5 "DM Sans Variable",
    sans-serif;
  color: var(--fs-text);
  background: var(--fs-canvas);
  color-scheme: light;
  overflow-wrap: anywhere;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--fs-link);
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
:where(button, input, select, summary, a):focus-visible {
  outline: 3px solid var(--fs-focus);
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  min-height: 100dvh;
}
.auth-brand-panel {
  position: relative;
  overflow: hidden;
  background: var(--fs-text);
}
.auth-brand-art {
  position: absolute;
  display: block;
  width: 60%;
  height: auto;
  max-width: none;
  right: -8%;
  bottom: -10%;
  pointer-events: none;
  user-select: none;
}
.auth-form-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 60px clamp(24px, 4vw, 64px);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  min-width: 0;
}
.auth-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin-bottom: 36px;
}
.auth-card h1 {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.16;
  margin: 0 0 15px;
}
.auth-card h1:focus {
  outline: none;
}
.auth-intro {
  color: var(--fs-muted);
  line-height: 1.6;
  margin: 0 0 32px;
}
.auth-card label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 22px 0 9px;
}
.auth-card form > label:first-of-type {
  margin-top: 0;
}
.auth-card input:not([type="hidden"]):not([type="checkbox"]),
.auth-card select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--fs-controlBorder);
  border-radius: 6px;
  background: var(--fs-surface);
  color: var(--fs-text);
  padding: 11px 12px;
}
.auth-card input::placeholder {
  color: var(--fs-muted);
  opacity: 1;
}
.auth-card button,
.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--fs-text);
  border-radius: 6px;
  background: var(--fs-primary);
  color: var(--fs-onPrimary);
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.auth-card form > button[type="submit"] {
  width: 100%;
  margin-top: 24px;
}
.auth-card .auth-secondary {
  background: var(--fs-surface);
  color: var(--fs-text);
  border-color: var(--fs-controlBorder);
}
.auth-password {
  position: relative;
}
.auth-password input {
  padding-right: 76px !important;
}
.auth-card .auth-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--fs-muted);
  font-size: 13px;
  padding: 5px 10px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--fs-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--fs-border);
  flex: 1;
}
.auth-card form > button.auth-google[type="submit"] {
  margin-top: 0;
}
.auth-error {
  border: 1px solid var(--fs-error);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--fs-error);
  background: var(--fs-surface);
  margin: 0 0 22px;
}
.auth-hint {
  font-size: 13px;
  color: var(--fs-muted);
  margin: 10px 0 0;
}
.auth-links {
  margin-top: 18px;
  font-size: 14px;
}
.auth-card .auth-code {
  font-size: 24px;
  letter-spacing: 0.24em;
  text-align: center;
}
.auth-qr {
  padding: 22px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.auth-qr img {
  max-width: 100%;
  height: auto;
}
.auth-qr p {
  margin: 0;
  font-size: 13px;
  color: var(--fs-muted);
}
.auth-manual {
  margin-top: 14px;
  font-size: 14px;
}
.auth-manual summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--fs-link);
}
.auth-manual code {
  display: block;
  padding: 12px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: 6px;
  word-break: break-all;
}
.auth-steps {
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 25px;
  padding: 0;
  font-size: 12px;
  color: var(--fs-muted);
}
.auth-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-steps span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--fs-controlBorder);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.auth-steps [aria-current="step"] {
  color: var(--fs-text);
  font-weight: 600;
}
.auth-steps [aria-current="step"] span {
  background: var(--fs-primary);
  color: var(--fs-onPrimary);
  border-color: var(--fs-text);
}
.auth-codes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 16px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: 8px;
  margin: 0 0 24px;
}
.auth-codes li {
  min-width: 0;
}
.auth-codes code {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.auth-card .auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.auth-check input {
  margin-top: 5px;
  accent-color: var(--fs-text);
}
.auth-card fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  margin-bottom: 22px;
}
@media (min-width: 801px) and (max-height: 800px) {
  .auth-form-panel {
    padding-block: 32px;
  }
}
@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    display: none;
  }
  .auth-form-panel {
    padding: 40px 24px 42px;
    min-height: 100dvh;
    align-items: start;
  }
  .auth-card h1 {
    font-size: 30px;
  }
}
@media (max-width: 360px) {
  .auth-form-panel {
    padding: 30px 20px;
  }
  .auth-logo {
    width: 168px;
  }
  .auth-codes {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .auth-steps {
    gap: 7px;
    font-size: 11px;
  }
  .auth-steps li {
    gap: 4px;
  }
  .auth-card h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}
