/* =========================================================
   EMPLOYEE NETWORK :: NEW EFFECTS PATCH
   Add below the cleanup/accessibility patch in en.css
   ========================================================= */

/* --- Typing boot lines --------------------------------------------------- */
.terminal-line--typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--terminal-bright);
  animation: en-cursor-blink 0.9s steps(1) infinite;
}

@keyframes en-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-line--typing::after {
    animation: none;
    opacity: 1;
  }
}

/* --- Heading glitch ------------------------------------------------------- */
.terminal-header h1 {
  position: relative;
}

.terminal-header h1.glitching {
  animation: en-glitch-shake 0.42s linear;
}

.terminal-header h1.glitching::before,
.terminal-header h1.glitching::after {
  content: attr(data-glitch-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.terminal-header h1.glitching::before {
  color: var(--warning-red, #ff3b3b);
  clip-path: inset(0 0 55% 0);
  transform: translate(-2px, -1px);
  opacity: 0.7;
}

.terminal-header h1.glitching::after {
  color: var(--terminal-bright);
  clip-path: inset(55% 0 0 0);
  transform: translate(2px, 1px);
  opacity: 0.7;
}

@keyframes en-glitch-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-header h1.glitching,
  .terminal-header h1.glitching::before,
  .terminal-header h1.glitching::after {
    animation: none;
    content: none;
  }
}

/* --- Last login stamp ------------------------------------------------------ */
[data-last-login] {
  display: block;
  margin-top: 0.4rem;
  color: var(--terminal-dark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-warning {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 0, 60, 0.55);
  color: #ff003c;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.45);
  background: rgba(255, 0, 60, 0.08);
}