@charset "UTF-8";
/* ==========================================================================
   NAVNIT KACHALIA — ACCESS GATE
   --------------------------------------------------------------------------
   Self-contained stylesheet for index.html.
   The gate carries no navigation, no imagery, no footer and no site content —
   only the authentication interface.
   ========================================================================== */

:root {
  --carbon:      #17160F;
  --carbon-lift: #1E1C13;
  --carbon-line: #34301F;
  --paper:       #F2EDE2;
  --paper-muted: #A9A292;
  --clay:        #C08A63;
  --sienna:      #C4643C;
  --olive:       #7E8459;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 6vw, 3rem);
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle architectural texture — the only decoration on the page. */
.gate-texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--carbon-line) 0 1px, transparent 1px 16.666%),
    radial-gradient(120% 90% at 50% 0%, rgba(192, 138, 99, 0.09), transparent 62%);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.gate {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 27rem;
}

.gate__rule {
  height: 1px;
  width: 3.25rem;
  background: var(--sienna);
  margin-bottom: 1.75rem;
}

.gate__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 0.9rem;
}

.gate__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--paper);
  margin: 0 0 0.9rem;
}

.gate__instruction {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--paper-muted);
  margin: 0 0 2.25rem;
  max-width: 34ch;
}

/* ---- Field ---------------------------------------------------------- */

.gate__field { position: relative; margin-bottom: 1.1rem; }

.gate__input {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--carbon-line);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  padding: 0.9rem 4.25rem 0.9rem 0;
  min-height: 52px;
  transition: border-color 260ms var(--ease-out);
  -webkit-appearance: none;
          appearance: none;
}
.gate__input::placeholder { color: #6C6555; letter-spacing: 0.12em; }
.gate__input:hover { border-bottom-color: #4A4530; }
.gate__input:focus {
  outline: none;
  border-bottom-color: var(--clay);
}
.gate__input:focus-visible { outline: none; }

/* Visible focus indicator that does not rely on the outline alone */
.gate__input:focus ~ .gate__underline { transform: scaleX(1); }

.gate__underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
  pointer-events: none;
}

.gate__reveal {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--paper-muted);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 0.75rem 0.25rem 0.75rem 0.75rem;
  min-height: 44px;
  transition: color 200ms var(--ease-out);
}
.gate__reveal:hover, .gate__reveal:focus-visible { color: var(--clay); }
.gate__reveal:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* ---- Submit --------------------------------------------------------- */

.gate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 54px;
  margin-top: 1.4rem;
  padding: 1rem 1.35rem;
  background: var(--paper);
  color: var(--carbon);
  border: 1px solid var(--paper);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out),
              border-color 240ms var(--ease-out);
}
.gate__submit:hover,
.gate__submit:focus-visible {
  background: var(--sienna);
  border-color: var(--sienna);
  color: #FFFFFF;
}
.gate__submit:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.gate__submit svg { flex: none; transition: transform 420ms var(--ease-out); }
.gate__submit:hover svg, .gate__submit:focus-visible svg { transform: translateX(4px); }
.gate__submit[disabled] { opacity: 0.55; cursor: progress; }

/* ---- Messaging ------------------------------------------------------ */

.gate__message {
  min-height: 1.4rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: transparent;
  transition: color 240ms var(--ease-out), opacity 240ms var(--ease-out);
  opacity: 0;
}
.gate__message.is-error { color: #E8906A; opacity: 1; }
.gate__message.is-hint  { color: var(--paper-muted); opacity: 1; }
.gate__message.is-ok    { color: var(--olive); opacity: 1; }

.gate.is-invalid .gate__input { border-bottom-color: #E8906A; }
.gate.is-invalid .gate__underline { background: #E8906A; transform: scaleX(1); }

/* A single restrained nudge — no bouncing, no shaking beyond one cycle. */
@keyframes gate-nudge {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.gate.is-invalid .gate__field { animation: gate-nudge 260ms var(--ease-out) 1; }

.gate__noscript {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--carbon-line);
  border-left: 2px solid var(--sienna);
  font-size: 0.8125rem;
  color: var(--paper-muted);
  border-radius: 0 2px 2px 0;
}

@media (max-width: 359px) {
  .gate__input { padding-right: 3.75rem; letter-spacing: 0.1em; }
  .gate__submit { font-size: 0.6875rem; letter-spacing: 0.15em; padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gate.is-invalid .gate__field { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
