/* Vanguard FCS Gate – passcode overlay styles */

:root {
  --bg:    #0a0c0e;
  --surf:  #111418;
  --brd:   #2a3340;
  --am:    #e8a020;
  --amd:   #7a5010;
  --tx:    #c8d8e8;
  --txd:   #6a7d8e;
  --txb:   #e8f4ff;
  --rdb:   #ff4444;
  --gnb:   #40c880;
  --mo:    'Share Tech Mono', monospace;
  --co:    'Barlow Condensed', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── Overlay ── */
#vfcs-gate-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: var(--co);
}

/* Subtle grid pattern */
#vfcs-gate-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 51, 64, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 51, 64, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Gate box ── */
#vfcs-gate-box {
  position: relative;
  background: var(--surf);
  border: 1px solid var(--brd);
  padding: 48px 56px;
  width: min(440px, 92vw);
  text-align: center;
  box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(232,160,32,0.08);
}

/* Corner accents */
#vfcs-gate-box::before,
#vfcs-gate-box::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--am);
  border-style: solid;
}
#vfcs-gate-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
#vfcs-gate-box::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ── Logo ── */
#vfcs-gate-logo {
  font-family: var(--co);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--am);
  text-transform: uppercase;
  margin-bottom: 4px;
}
#vfcs-gate-logo span {
  color: var(--tx);
  font-weight: 400;
}

/* ── Subtitle ── */
#vfcs-gate-subtitle {
  font-family: var(--mo);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--txd);
  margin-bottom: 36px;
  text-transform: uppercase;
}

/* ── Divider ── */
#vfcs-gate-subtitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--brd);
  margin: 16px auto 0;
}

/* ── Form ── */
#vfcs-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

#vfcs-passcode-input {
  background: var(--bg);
  border: 1px solid var(--brd);
  color: var(--txb);
  font-family: var(--mo);
  font-size: 15px;
  letter-spacing: 4px;
  padding: 12px 16px;
  text-align: center;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  caret-color: var(--am);
}
#vfcs-passcode-input::placeholder {
  color: var(--txd);
  letter-spacing: 2px;
  font-size: 11px;
}
#vfcs-passcode-input:focus {
  border-color: var(--am);
  box-shadow: 0 0 0 2px rgba(232,160,32,0.1);
}

#vfcs-submit-btn {
  background: transparent;
  border: 1px solid var(--am);
  color: var(--am);
  font-family: var(--co);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 11px 24px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}
#vfcs-submit-btn:hover {
  background: var(--am);
  color: var(--bg);
}
#vfcs-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Error / success messages ── */
#vfcs-gate-error {
  font-family: var(--mo);
  font-size: 10px;
  letter-spacing: 1px;
  min-height: 18px;
  color: var(--rdb);
  text-transform: uppercase;
  margin-bottom: 4px;
}
#vfcs-gate-error.success {
  color: var(--gnb);
}

/* ── Hint ── */
#vfcs-gate-hint {
  font-family: var(--mo);
  font-size: 9px;
  color: #3a4a58;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#vfcs-gate-hint kbd {
  background: #1e262e;
  border: 1px solid #2a3340;
  border-radius: 2px;
  padding: 1px 5px;
  font-family: var(--mo);
  font-size: 9px;
  color: var(--txd);
}

/* ── Shake animation on wrong passcode ── */
@keyframes vfcs-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}
.vfcs-shake { animation: vfcs-shake 0.45s ease; }

/* ── Fade-in for the app ── */
@keyframes vfcs-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#vfcs-app.vfcs-visible {
  animation: vfcs-fadein 0.4s ease forwards;
}
