/* ==========================================================================
   YOGESH LAKHANI — auth.css
   Stylesheet for the passcode page (index.html) only.
   Deliberately self-contained: no site chrome, no imagery, no footer.
   ========================================================================== */

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

:root {
  --paper:  #F5F2EA;
  --pine:   #1B362F;
  --pine-2: #24463C;
  --clay:   #C4703F;
  --clay-2: #E0A87F;
  --brass:  #C2A365;
  --line:   rgba(240, 236, 224, .22);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
}

html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--pine);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible { outline: 2px solid var(--clay-2); outline-offset: 3px; }

.gate {
  width: 100%;
  max-width: 400px;
}

.gate__rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0 0 26px;
}

.gate__title {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--clay-2);
}

.gate__note {
  margin: 18px 0 34px;
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: rgba(245, 242, 234, .92);
}

.gate__field { position: relative; }

.gate__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, .55);
  margin-bottom: 10px;
}

.gate__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: .16em;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s ease;
}
.gate__input::placeholder { color: rgba(245, 242, 234, .42); letter-spacing: .1em; }
.gate__input:focus { outline: none; border-bottom-color: var(--clay); }
.gate__input:focus-visible { outline: none; border-bottom-color: var(--clay-2); }

.gate.has-error .gate__input { border-bottom-color: var(--clay); }

.gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .3s cubic-bezier(.22,.61,.36,1),
              color .3s cubic-bezier(.22,.61,.36,1),
              border-color .3s ease;
}
.gate__btn:hover, .gate__btn:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--pine);
}
.gate__btn span:last-child { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.gate__btn:hover span:last-child { transform: translateX(4px); }

.gate__msg {
  min-height: 22px;
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--clay-2);
  opacity: 0;
  transition: opacity .25s ease;
}
.gate.has-error .gate__msg { opacity: 1; }

.gate__foot {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, .58);
}

@media (max-width: 420px) {
  .gate__note { font-size: 1.16rem; }
  .gate__input { font-size: 1.08rem; }
  body { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
