@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --mist: #dcefe9;
  --paper: #fffdf8;
  --ink: #31524d;
  --muted: #829a91;
  --green: #638a76;
  --gold: #b99a68;
  font-family: 'Noto Nastaliq Urdu', serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--mist); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); }
.gate-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: 24px 16px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 13% 18%, rgba(255,255,255,.8), transparent 31rem),
    radial-gradient(ellipse at 90% 82%, rgba(246,232,213,.85), transparent 29rem),
    linear-gradient(145deg, #e7f3ed 0%, #dcefe9 48%, #f2ebdd 100%);
}
.gate-glow { position: absolute; z-index: -1; width: min(70vw, 520px); aspect-ratio: 1; border: 1px solid rgba(103,149,130,.13); border-radius: 47% 53% 65% 35% / 38% 42% 58% 62%; pointer-events: none; }
.gate-glow::before, .gate-glow::after { position: absolute; content: ''; inset: 18px; border: 1px solid rgba(185,154,104,.16); border-radius: inherit; transform: rotate(31deg); }
.gate-glow::after { inset: 37px; transform: rotate(-25deg); }
.gate-glow--one { top: -290px; right: -190px; }
.gate-glow--two { bottom: -325px; left: -215px; }
.gate-card {
  width: min(100%, 470px);
  padding: clamp(35px, 8vw, 60px) clamp(23px, 7vw, 54px) 34px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 5px 5px 42px 5px;
  background: linear-gradient(155deg, rgba(255,255,252,.96), rgba(255,252,244,.88));
  box-shadow: 0 30px 82px rgba(59,104,88,.13), 0 4px 18px rgba(88,122,106,.06);
  text-align: center;
  animation: gate-in 700ms cubic-bezier(.2,.7,.2,1) both;
}
.lock-seal { display: grid; width: 64px; height: 64px; margin: 0 auto 15px; place-items: center; border: 1px solid rgba(122,161,141,.31); border-radius: 50%; background: #eef7f1; }
.lock-seal svg { width: 33px; fill: none; stroke: #729884; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.gate-eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 2.2; }
.gate-card h1 { margin: 0; color: #365c53; font-size: clamp(29px, 7vw, 39px); font-weight: 500; line-height: 1.9; }
.gate-copy { margin: 7px 0 19px; color: #71877c; font-size: 15px; line-height: 2.25; }
.unlock-form { display: flex; flex-direction: column; text-align: right; }
.unlock-form label { margin: 0 3px 5px; color: #557366; font-size: 13px; line-height: 2; }
.unlock-form input { width: 100%; min-height: 52px; padding: 9px 15px 7px; border: 1px solid rgba(114,151,130,.38); border-radius: 12px; outline: none; background: rgba(255,255,255,.8); color: #31524d; font: 16px/1.8 system-ui, sans-serif; direction: ltr; text-align: left; }
.unlock-form input:focus { border-color: #6c947e; box-shadow: 0 0 0 3px rgba(108,148,126,.15); }
.gate-message { min-height: 28px; margin: 6px 2px 2px; color: #a34f4f; font-size: 12px; line-height: 2; }
.gate-message[data-kind="success"] { color: #527c65; }
.unlock-form button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 11px; margin-top: 2px; border: 1px solid rgba(61,101,84,.12); border-radius: 999px; background: linear-gradient(135deg, #6e9782, #567c69); box-shadow: 0 10px 24px rgba(65,111,88,.2); color: white; font: 16px/2 'Noto Nastaliq Urdu', serif; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.unlock-form button:hover { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(65,111,88,.25); }
.unlock-form button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.unlock-form button:disabled { opacity: .68; cursor: wait; }
.gate-footnote { margin: 15px 0 0; color: #8a9e91; font-size: 11px; line-height: 2.1; }
@keyframes gate-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 420px) { .gate-card { padding-inline: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
