/* ---------------------------------- */
/* FONT IMPORT AND BASE STYLES       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
  margin: 0;
  background: black;
  color: #00ffea;
  font-family: 'Share Tech Mono', monospace;
  overflow-y: auto;
  height: 100vh;
}

/* ---------------------------------- */
/* TERMINAL CONTAINER AND BACKGROUND */
/* ---------------------------------- */
.terminal {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(#000 0%, #010a0a 100%);
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.terminal-content {
  text-align: left;
  max-width: 80%;
  z-index: 2;
  overflow-y: auto;
}

/* ---------------------------------- */
/* TEXT STYLES AND TERMINAL ANIMATION */
/* ---------------------------------- */
.title {
  font-size: 2rem;
  text-shadow: 0 0 8px #00ffea;
  margin-bottom: 1rem;
}

.output {
  margin: 0.5rem 0;
  animation: fadeText 4s ease-in-out infinite alternate;
}

@keyframes fadeText {
  0% { opacity: 1; }
  100% { opacity: 0.8; }
}

/* ---------------------------------- */
/* LOGIN FORM STYLING                 */
/* ---------------------------------- */
.login {
  margin-top: 1rem;
}

.login input,
.login button {
  background: transparent;
  border: 1px solid #00ffea;
  color: #00ffea;
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  margin-right: 0.5rem;
}

.login button:hover {
  background: #00ffea22;
}

/* ---------------------------------- */
/* SCANLINE AND CRT GLOW EFFECTS     */
/* ---------------------------------- */
.scanlines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 1px,
    rgba(0, 255, 234, 0.03) 2px
  );
  z-index: 1;
  pointer-events: none;
  animation: flicker 1s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.05; }
}

.glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 80px #00ffea33;
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------- */
/* SCROLLBAR CUSTOMIZATION           */
/* ---------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #010a0a;
}

::-webkit-scrollbar-thumb {
  background: #00ffea55;
  border-radius: 6px;
  border: 1px solid #00ffea;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ffea;
}