/* ═══════════════════════════════════════════════════════════════════════════
   FIB DATABASE - CLASSIFIED ENTRY SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Entry Overlay ─── */
.entry-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 25%, #000 50%, #0a0a0a 75%, #000 100%);
  background-size: 400% 400%;
  animation: entryBg 8s ease-in-out infinite;
  z-index: var(--z-entry);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.entry-screen.fade-out {
  opacity: 0;
  transition: opacity 1.5s ease-out;
  pointer-events: none;
}

.entry-screen.hidden {
  display: none;
}

@keyframes entryBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Watermark Logo ─── */
.entry-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: auto;
  opacity: 0.5;
  z-index: 1;
  filter: drop-shadow(0 0 30px var(--terminal-green));
  animation: watermarkPulse 3s ease-in-out infinite;
}

@keyframes watermarkPulse {
  0%, 100% { 
    opacity: 0.4;
    filter: drop-shadow(0 0 20px var(--terminal-green));
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.6;
    filter: drop-shadow(0 0 40px var(--terminal-green)) drop-shadow(0 0 60px var(--terminal-green));
    transform: translate(-50%, -50%) scale(1.03);
  }
}

/* ─── Entry Content Box ─── */
.entry-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 40px 50px;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid var(--terminal-green);
  border-radius: 12px;
  box-shadow: 
    0 0 40px var(--terminal-green-glow),
    inset 0 0 30px rgba(0, 255, 0, 0.08);
  animation: entryGlow 2s ease-in-out infinite alternate;
}

@keyframes entryGlow {
  0% { 
    box-shadow: 0 0 30px var(--terminal-green-glow), inset 0 0 20px rgba(0, 255, 0, 0.05);
  }
  100% { 
    box-shadow: 0 0 60px var(--terminal-green-glow), inset 0 0 40px rgba(0, 255, 0, 0.1);
  }
}

/* ─── Entry Header ─── */
.entry-logo {
  font-size: 64px;
  font-weight: 900;
  color: var(--terminal-green);
  text-shadow: 0 0 30px var(--terminal-green);
  font-family: var(--font-mono);
  letter-spacing: 12px;
  margin-bottom: 16px;
  animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { 
    transform: scale(1);
    text-shadow: 0 0 20px var(--terminal-green);
  }
  50% { 
    transform: scale(1.03);
    text-shadow: 0 0 40px var(--terminal-green), 0 0 60px var(--terminal-green);
  }
}

.entry-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 4px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.entry-subtitle {
  font-size: 14px;
  color: var(--terminal-green);
  letter-spacing: 3px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

/* ─── Access Sequence ─── */
.access-sequence {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  margin-bottom: 24px;
}

.access-line {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLine 0.5s ease-in forwards;
}

.access-line:nth-child(1) { animation-delay: 0.3s; }
.access-line:nth-child(2) { animation-delay: 0.6s; }
.access-line:nth-child(3) { animation-delay: 0.9s; }
.access-line:nth-child(4) { animation-delay: 1.2s; }
.access-line:nth-child(5) { animation-delay: 2.5s; }
.access-line:nth-child(6) { animation-delay: 3s; }
.access-line:nth-child(7) { animation-delay: 3.5s; }

@keyframes fadeInLine {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.prompt {
  color: var(--terminal-green);
  font-weight: 600;
}

.password-display {
  color: #ff3333;
  font-weight: 700;
  letter-spacing: 3px;
}

.verification-status {
  color: var(--terminal-green);
  font-weight: 700;
}

.access-status {
  color: var(--terminal-green);
  font-weight: 700;
  text-shadow: 0 0 10px var(--terminal-green);
}

.welcome-message {
  color: var(--terminal-green);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 0 15px var(--terminal-green);
}

/* ─── Typing Cursor ─── */
.typing-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--terminal-green);
  animation: blink 1s infinite;
  margin-left: 4px;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ─── Entry Footer ─── */
.entry-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--terminal-green-dim);
}

.security-level {
  color: #ff3333;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  animation: securityBlink 2s ease-in-out infinite;
}

@keyframes securityBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.unauthorized-warning {
  color: #ff6666;
  font-size: 10px;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* ─── Skip Button (optional) ─── */
.entry-skip {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
}

.entry-skip:hover {
  border-color: var(--terminal-green);
  color: var(--terminal-green);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .entry-content {
    margin: 20px;
    padding: 24px;
  }
  
  .entry-logo {
    font-size: 48px;
    letter-spacing: 8px;
  }
  
  .entry-title {
    font-size: 16px;
    letter-spacing: 2px;
  }
  
  .entry-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
  }
  
  .access-sequence {
    font-size: 12px;
  }
  
  .entry-watermark {
    width: 250px;
  }
}

