@font-face {
  font-family: "Excellent Sans";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --excellent-black: #07100b;
  --excellent-green: #008f4f;
  --excellent-green-dark: #006f3e;
  --excellent-green-soft: #e7f6ee;
  --excellent-ink: #15201a;
  --excellent-page: #f3f6f3;
  --excellent-surface: #ffffff;
  --excellent-line: #dce3de;
  --excellent-line-strong: #c8d2cb;
  --excellent-muted: #66736b;
  --excellent-red: #a83b32;
  --excellent-red-soft: #ffebe8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--excellent-page);
  color: var(--excellent-ink);
  font-family: "Excellent Sans", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.login-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 3px solid var(--excellent-green);
  background: var(--excellent-black);
}

.login-header img {
  display: block;
  width: 190px;
  height: auto;
}

.login-main {
  min-height: calc(100vh - 85px);
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-card {
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid var(--excellent-line);
  border-radius: 8px;
  background: var(--excellent-surface);
  box-shadow: 0 2px 10px rgba(7, 16, 11, 0.04);
}

.login-eyebrow {
  margin: 0 0 5px;
  color: var(--excellent-green-dark);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.login-intro {
  margin: 10px 0 20px;
  color: var(--excellent-muted);
  font-size: 13px;
}

.login-field {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}

.login-field label {
  color: #425048;
  font-size: 12px;
  font-weight: 730;
}

.login-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--excellent-line-strong);
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--excellent-ink);
  font: inherit;
  font-size: 14px;
}

.login-field input:focus {
  border-color: var(--excellent-green);
  box-shadow: 0 0 0 3px rgba(0, 143, 79, 0.13);
}

.login-error {
  margin: 0 0 14px;
  padding: 10px 11px;
  border: 1px solid #f1c6c1;
  border-radius: 7px;
  background: var(--excellent-red-soft);
  color: var(--excellent-red);
  font-size: 12px;
  font-weight: 700;
}

.login-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  padding: 10px 15px;
  border: 0;
  border-radius: 7px;
  background: var(--excellent-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  transition: background 160ms ease;
}

.login-submit:hover {
  background: var(--excellent-green-dark);
}

.login-submit:focus-visible {
  outline: 3px solid rgba(0, 143, 79, 0.24);
  outline-offset: 2px;
}

.login-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--excellent-line);
  color: var(--excellent-muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .login-header {
    min-height: 72px;
    padding: 12px 16px;
  }

  .login-header img {
    width: 164px;
  }

  .login-main {
    min-height: calc(100vh - 75px);
    padding: 22px 14px;
  }

  .login-card {
    padding: 20px;
  }
}
