* { box-sizing: border-box; }
:root {
  color: #222b24;
  background: #e9eee5;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}

body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.access { width: min(100%, 430px); background: #fffefa; border-radius: 18px; box-shadow: 0 18px 70px #18301c1f; }
.access-form { padding: 38px; }
h1 { font-size: 1.85rem; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 24px; }
p { color: #566358; }
form { display: grid; gap: 8px; }
form + form { margin-top: 12px; }
label { font-weight: 550; }
input { width: 100%; min-height: 43px; border: 1px solid #cdd7c8; border-radius: 7px; padding: 8px 10px; margin-bottom: 9px; font: inherit; background: white; }
button { min-height: 43px; border: 0; border-radius: 7px; background: #284c36; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #356048; }
.secondary { background: transparent; color: #294b37; border: 1px solid #b9cbb8; }
.secondary:hover { background: #edf3ea; }
a { color: #285035; }
:focus-visible { outline: 3px solid #a16c2c; outline-offset: 3px; }
input:focus { border-color: #3c6749; outline: none; box-shadow: inset 0 0 0 1px #3c6749; }
.errors { color: #8b252c; }
.errors ul { margin: 0 0 10px; padding-left: 20px; }
.validation-summary-valid { display: none; }
.field-error { color: #8b252c; margin: -7px 0 4px; }
.field-validation-valid { display: none; }
.input-validation-error { border-color: #a73f47; }
.input-validation-error:focus { border-color: #a73f47; box-shadow: inset 0 0 0 1px #a73f47; }
@media (forced-colors: active) {
  input:focus { outline: 2px solid Highlight; outline-offset: -2px; }
}
.button-pending { display: none; }
button[aria-busy="true"] { cursor: progress; }
button[aria-busy="true"] .button-label { display: none; }
button[aria-busy="true"] .button-pending { display: inline-flex; align-items: center; gap: 8px; }
.button-pending::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button-pending::before { animation: none; } }

@media (max-width: 570px) {
  body { padding: 12px; }
  .access-form { padding: 29px 18px; }
}
