/* =============================================
   KIZA — gate.css
   Page access gate overlay
   ============================================= */

/* ── OVERLAY ── */
#access-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #F2F6FB);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1),
              transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
#access-gate.gate-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

/* ── CARD ── */
.gate-card {
  width: min(480px, calc(100vw - 48px));
  padding: 52px 48px;
  background: var(--white, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* accent bar top */
.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--blue, #2C5F8A));
}

/* ── ICON ── */
.gate-icon {
  width: 48px; height: 48px;
  color: var(--accent, var(--blue, #2C5F8A));
  margin-bottom: 28px;
}
.gate-icon svg { width: 100%; height: 100%; }

/* ── TEXTS ── */
.gate-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent, #2C5F8A);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gate-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, #2C5F8A);
  flex-shrink: 0;
}

.gate-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy, #152238);
  margin-bottom: 16px;
}
.gate-title em {
  font-style: italic;
  color: var(--accent, #2C5F8A);
}

.gate-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--muted, #7A90A8);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ── FORM ── */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-input-wrap {
  position: relative;
}

.gate-input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--border, rgba(0,0,0,0.12));
  background: var(--bg, #F2F6FB);
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--navy, #152238);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.gate-input::placeholder {
  color: var(--muted-light, #9AAEC2);
  letter-spacing: 0.05em;
}
.gate-input:focus {
  border-color: var(--accent, #2C5F8A);
  box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.1);
  background: var(--white, #fff);
}
.gate-input.gate-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
  animation: shake 0.35s var(--ease-out, ease);
}

/* toggle show/hide password */
.gate-toggle-pw {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted, #7A90A8);
  padding: 4px;
  transition: color 0.2s;
}
.gate-toggle-pw:hover { color: var(--accent, #2C5F8A); }
.gate-toggle-pw svg { width: 16px; height: 16px; display: block; }

/* submit button */
.gate-submit {
  padding: 14px 28px;
  background: var(--accent, #2C5F8A);
  color: #fff;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gate-submit:hover  { background: var(--accent-light, #4080B0); transform: translateY(-2px); }
.gate-submit:active { transform: translateY(0); }
.gate-submit svg { width: 14px; height: 14px; transition: transform 0.2s; }
.gate-submit:hover svg { transform: translateX(3px); }

/* ── ERROR MESSAGE ── */
.gate-error-msg {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #c0392b;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  min-height: 1.2em;
}
.gate-error-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER NOTE ── */
.gate-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border, rgba(0,0,0,0.1));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gate-footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--navy, #152238);
  text-decoration: none;
}
.gate-footer-back {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #7A90A8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.gate-footer-back svg { width: 12px; height: 12px; }
.gate-footer-back:hover { color: var(--accent, #2C5F8A); }

/* ── SHAKE ANIMATION ── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .gate-card { padding: 40px 28px; }
}
