:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #172033;
}

* { box-sizing: border-box; }

body { min-width: 320px; min-height: 100vh; margin: 0; }

.access-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 28px;
}

.access-brand {
  align-self: center;
  color: #172033;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.access-form {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
  gap: 8px;
  position: relative;
  width: min(100%, 620px);
}

.access-form input,
.access-form button {
  min-height: 42px;
  border: 1px solid #cbd4e2;
  border-radius: 6px;
  font: inherit;
}

.access-form input {
  min-width: 0;
  background: #fff;
  color: #172033;
  padding: 9px 12px;
}

.access-form button {
  border-color: #2748d6;
  background: #2f5bff;
  color: #fff;
  cursor: pointer;
  padding: 9px 16px;
}

.access-form input:focus,
.access-form button:focus-visible {
  outline: 3px solid rgba(47, 91, 255, .22);
  outline-offset: 2px;
}

.access-form button:disabled { cursor: wait; opacity: .7; }

.access-error {
  bottom: calc(100% + 8px);
  color: #bd3429;
  font-size: 13px;
  left: 0;
  margin: 0;
  position: absolute;
}

@media (max-width: 620px) {
  .access-page { padding: 20px; }
  .access-brand { font-size: 36px; }
  .access-form { grid-template-columns: 1fr 1fr; }
  .access-form button { grid-column: 1 / -1; }
}
