/* Passcode entry page — intentionally minimal */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(213, 222, 211, 0.07) 0) 0 0 / calc(100% / 6) 100%,
    #16263d;
  color: #f5f1e8;
  font-family: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.access {
  width: 100%;
  max-width: 24rem;
}

.access__form {
  border-top: 3px solid #b97863;
  padding-top: 1.5rem;
}

.access__form.is-shaking {
  animation: shake 0.4s ease;
}

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.access__label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d5ded3;
}

.access__field {
  display: flex;
  border: 1px solid rgba(245, 241, 232, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.access__field:focus-within {
  border-color: #f5f1e8;
  box-shadow: 0 0 0 3px rgba(224, 171, 151, 0.45);
}

.access__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #f5f1e8;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.access__input[aria-invalid="true"] {
  color: #ffd7c9;
}

.access__button {
  flex: 0 0 auto;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  background: #f5f1e8;
  border: 0;
  border-radius: 0;
  color: #16263d;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.access__button:hover {
  background: #e0ab97;
}

.access__button:focus-visible {
  outline: 2px solid #e0ab97;
  outline-offset: 3px;
}

.access__button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.access__message {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: #ffc7b4;
}

@media (prefers-reduced-motion: reduce) {
  .access__form.is-shaking {
    animation: none;
  }
}
