:root {
  --ink: #1e1f1c;
  --muted: #70716c;
  --line: #deddd7;
  --paper: #ffffff;
  --canvas: #f4f3ef;
  --accent: #bd5127;
  --accent-hover: #a7431e;
  --focus: rgba(189, 81, 39, 0.22);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button:not(:disabled),
summary {
  cursor: pointer;
}

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

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

.login-panel {
  width: min(100%, 408px);
}

.brand {
  display: inline-block;
  margin-bottom: 44px;
}

.brand img {
  display: block;
  width: 128px;
  height: auto;
}

.login-heading {
  margin-bottom: 30px;
}

.login-heading h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.login-heading p,
.access-request-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:hover {
  border-color: #c5c4bd;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
  outline: none;
}

.field input[aria-invalid="true"] {
  border-color: var(--accent);
}

.submit-button,
.secondary-button {
  min-height: 46px;
  border-radius: 9px;
  font-weight: 650;
}

.submit-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
}

.submit-button:hover:not(:disabled) {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  min-height: 20px;
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status:empty {
  min-height: 0;
}

.form-status.is-error {
  color: #a43d1b;
}

.access-request {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.access-request summary {
  color: var(--muted);
  font-size: 14px;
  list-style-position: inside;
}

.access-request[open] summary {
  margin-bottom: 26px;
}

.access-request-body {
  display: grid;
  gap: 10px;
}

.access-request-body h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.access-request-body .login-form {
  margin-top: 14px;
}

@media (max-width: 520px) {
  .login-shell {
    place-items: start center;
    padding: 54px 22px 36px;
  }

  .brand {
    margin-bottom: 48px;
  }

  .login-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
