:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f8;
  color: #17202a;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: #f4f6f8;
}

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

.access-form {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgb(23 32 42 / 8%);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);

  @starting-style {
    opacity: 0;
    transform: translateY(8px);
  }
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 6px;
  background: #15202b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.heading { margin-bottom: 24px; }

.heading p {
  margin: 0 0 6px;
  color: #66717d;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

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

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #bcc5cf;
  padding: 9px 12px;
  color: #17202a;
  outline: none;
}

input:focus {
  border-color: #1769aa;
  box-shadow: 0 0 0 3px rgb(23 105 170 / 14%);
}

input:focus-visible, button:focus-visible { outline: 2px solid #1769aa; outline-offset: 2px; }
input:focus-visible { outline: 0; }

button {
  border: 1px solid #1769aa;
  padding: 9px 18px;
  background: #1769aa;
  color: #ffffff;
  cursor: pointer;
  font-weight: 650;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, border-color 140ms ease;
}

button:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  button:hover { background: #12598f; }
}

@media (prefers-reduced-motion: reduce) {
  .access-form { transition-property: opacity; transform: none; }
  button { transition-property: background-color, border-color; }
  button:active { transform: none; }
}

.error-message {
  margin: 12px 0 0;
  color: #b42318;
  font-size: 13px;
}

@media (max-width: 420px) {
  .access-shell { padding: 16px; }
  .access-form { padding: 22px; }
}
