:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #17241e;
  background: #f5f5f2;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
.gate { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.gate-form { width: min(100%, 440px); text-align: center; }
h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; }
.hint { margin: 12px 0 30px; color: #526057; font-size: 1rem; }
.code-fields { display: flex; justify-content: center; gap: clamp(8px, 3vw, 14px); }
.code-fields input { width: clamp(42px, 12vw, 54px); height: clamp(52px, 14vw, 64px); border: 1px solid #c8cec9; border-radius: 8px; background: #fff; color: #17241e; font: 700 1.65rem/1 Arial, sans-serif; text-align: center; outline: none; }
.code-fields input:focus { border-color: #4b871b; box-shadow: 0 0 0 3px rgb(75 135 27 / 16%); }
.error { min-height: 22px; margin: 12px 0; color: #a3212a; font-size: .9rem; }
button { min-width: 180px; min-height: 50px; border: 0; border-radius: 7px; background: #4b871b; color: #fff; cursor: pointer; font: 700 1rem Arial, sans-serif; }
button:hover { background: #3c7114; }
button:focus-visible { outline: 3px solid #17241e; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .7; }
