:root {
  --auth-canvas: #dedbd4;
  --auth-surface: #f7f6f0;
  --auth-ink: #222320;
  --auth-muted: #66675f;
  --auth-line: #c6c5bb;
  --auth-accent: #c5d4e7;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body.auth-page {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  background: var(--auth-canvas);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #55759b; outline-offset: 5px; }
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}
.auth-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--auth-line);
}
.auth-brand {
  position: absolute;
  top: 5.5vh;
  left: 4.2vw;
  z-index: 1;
  text-decoration: none;
  font-size: clamp(17px, 1.7vw, 25px);
  font-weight: 600;
  letter-spacing: -.065em;
}
.auth-brand span { margin-left: 3px; font-size: .35em; vertical-align: super; letter-spacing: 0; }
.art-guides { position: absolute; inset: 0; opacity: .46; }
.art-guides::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--auth-line) 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), var(--auth-line) 50%, transparent calc(50% + .5px));
}
.art-guides::after {
  content: "";
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent calc(50% - .5px), var(--auth-line) 50%, transparent calc(50% + .5px)),
    linear-gradient(-45deg, transparent calc(50% - .5px), var(--auth-line) 50%, transparent calc(50% + .5px));
}
.auth-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  max-width: 240px;
  height: auto;
  color: var(--auth-ink);
}
.auth-copyright {
  position: absolute;
  bottom: 4.7vh;
  left: 4.2vw;
  font-size: .6rem;
  color: var(--auth-muted);
}
.auth-content {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--auth-surface);
}
.auth-alternate {
  position: absolute;
  z-index: 1;
  top: 6vh;
  right: 4.2vw;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  font-size: .8rem;
  text-decoration: none;
}
.auth-alternate:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-form-wrap {
  position: relative;
  width: calc(100% - 5vw);
  margin-left: 2.5vw;
  margin-top: max(110px, 28vh);
  padding-bottom: 64px;
}
.auth-form-wrap h1 {
  margin: 0 0 47px;
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: 1.1;
  letter-spacing: -.065em;
  font-weight: 400;
}
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; }
.field { min-width: 0; border-bottom: 1px solid #93958a; }
.field:focus-within { border-bottom-color: #55759b; }
.field-name { grid-column: 1 / -1; }
.field label { display: block; font-size: .65rem; margin-bottom: 7px; }
.field input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 0 8px;
  color: var(--auth-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: clamp(12px, 1.2vw, 17px);
}
.field input::placeholder { color: #76786e; opacity: 1; }
.field input:focus-visible { outline: none; }
.password-input { display: flex; align-items: center; gap: 5px; }
.password-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  margin-bottom: 8px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
}
.password-toggle svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; }
.password-toggle[aria-pressed="true"] { color: #315a89; }
.auth-submit {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  color: var(--auth-ink);
  background: var(--auth-accent);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.auth-submit:hover { background: #b6c8e0; }
.auth-alert { margin: -20px 0 24px; padding: 10px 0; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-alert-error { color: #913c2e; }
.auth-alert-success { color: #42653d; }
@media (min-width: 761px) and (max-height: 600px) {
  .auth-form-wrap { margin-top: max(100px, 20vh); }
  .auth-content { min-height: 560px; }
}
@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { height: 29svh; min-height: 185px; border-right: 0; border-bottom: 1px solid var(--auth-line); }
  .auth-brand { top: 22px; left: 24px; font-size: 19px; }
  .auth-symbol { width: 85px; left: 70%; }
  :is(.auth-login,.auth-signup) .auth-brand { left:50%;transform:translateX(-50%); }
  :is(.auth-login,.auth-signup) .auth-symbol { left:50%; }
  .art-guides::before { background: linear-gradient(90deg, transparent calc(70% - .5px), var(--auth-line) 70%, transparent calc(70% + .5px)), linear-gradient(transparent calc(50% - .5px), var(--auth-line) 50%, transparent calc(50% + .5px)); }
  .art-guides::after { left: 70%; width: 200px; }
  :is(.auth-login,.auth-signup) .art-guides::before { background:linear-gradient(90deg,transparent calc(50% - .5px),var(--auth-line) 50%,transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),var(--auth-line) 50%,transparent calc(50% + .5px)); }
  :is(.auth-login,.auth-signup) .art-guides::after { left:50%; }
  .auth-copyright { left: 24px; bottom: 16px; font-size: .5rem; }
  .auth-content { min-height: 71svh; }
  .auth-alternate { top: 24px; right: 24px; }
  .auth-form-wrap { margin-left: 24px; width: calc(100% - 48px); margin-top: 100px; padding-bottom: 48px; }
  .auth-form-wrap h1 { font-size: 43px; margin-bottom: 34px; }
  .field input { font-size: 16px; }
  .auth-form { gap: 24px 14px; }
}
@media (max-width: 380px) {
  .auth-form { grid-template-columns: 1fr; }
  .field-name { grid-column: auto; }
}
