@font-face {
  font-family: Sora;
  src: url('/auth/sora.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1e1e1e;
  --muted: #636970;
  --line: #d8dcdf;
  --blue: #068ae0;
  --lime: #d5ff02;
  font-family: Sora, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fcfcfc; color: var(--ink); }
.page {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  min-height: 100vh;
  min-height: 100svh;
}
.brand-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 48px clamp(32px, 4.5vw, 80px);
  background: #1e1e1e;
  color: #fff;
}
.brand-logo { display: block; flex: none; width: 164px; height: 42px; }
.brand-copy { margin: auto 0; padding: 64px 0 88px; }
.brand-kicker {
  margin: 0 0 24px;
  color: #b9bec3;
  font-size: 13px;
  font-weight: 500;
}
.brand-heading {
  margin: 0;
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.045em;
}
.brand-support { margin: 28px 0 0; color: #b9bec3; font-size: 14px; line-height: 1.7; }
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 64px 40px;
}
.login-inner { width: 100%; max-width: 360px; }
h1 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
.login-intro { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
form { margin-top: 36px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
label { font-size: 14px; font-weight: 500; line-height: 1.5; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
input:hover { border-color: #a8aeb4; }
input:focus { border-color: var(--blue); }
input:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input[aria-invalid=true] { border-color: #b42318; }
input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}
#login-error { min-height: 40px; margin: -6px 0 16px; color: #b42318; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
button {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #c7ef00; }
button:active:not(:disabled) { background: #bce200; }
button:disabled { background: #e5e8cd; color: #62664f; cursor: wait; }

@media (max-width: 760px) {
  .page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .brand-panel { padding: 24px 28px; }
  .brand-copy { display: none; }
  .login { align-items: flex-start; padding: 48px 24px 56px; }
  h1 { font-size: 28px; }
  label { font-size: 16px; }
}
@media (min-width: 761px) and (max-height: 650px) {
  .brand-panel { padding-top: 32px; padding-bottom: 32px; }
  .brand-copy { padding: 40px 0; }
  .login { padding-top: 40px; padding-bottom: 40px; }
}
.page { display: flex; flex-direction: column; }
.brand-panel { flex: none; padding: 20px max(24px, calc((100vw - 1080px) / 2)); }
.brand-copy { display: none; }
.login { flex: 1; padding: 40px 24px; }
.login-inner { max-width: 360px; }
h1 { font-size: 28px; }
form { margin-top: 28px; }
button { background: var(--ink); color: #fff; }
button:hover:not(:disabled) { background: #373d43; }
