@font-face {
  font-family: "Inter";
  src: url("/assets/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  font-style: normal;
  font-weight: 100 900;
  size-adjust: 107.216%;
  ascent-override: 97%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Sentient";
  src: url("/assets/sentient-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Sentient Fallback";
  src: local("Georgia");
  font-style: normal;
  font-weight: 500;
  size-adjust: 109.9306%;
  ascent-override: 96%;
  descent-override: 32%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #707070;
  --line: #ddddda;
  --field-line: #929292;
  --accent: #cc4400;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171717;
    --surface: #212121;
    --text: #f2f2f2;
    --muted: #a0a0a0;
    --line: #353535;
    --field-line: #707070;
    --accent: #ff6633;
    --error: #ff8a80;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background-color: var(--background);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 430px);
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 64px rgb(0 0 0 / 10%);
}

.login-panel img {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Sentient", "Sentient Fallback", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.intro {
  margin: 16px 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

input,
button {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  font: inherit;
}

input {
  padding: 0 14px;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--field-line);
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.error {
  margin: 10px 0 0;
  color: var(--error);
  font-size: 13px;
}

button {
  margin-top: 18px;
  color: var(--surface);
  background: var(--text);
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: var(--accent);
}

@media (max-width: 480px) {
  .login-shell {
    align-items: end;
    padding: 12px;
  }

  .login-panel {
    padding: 28px 24px;
  }

  h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}