:root {
  --glitch-duration: 3s;
  --matrix-green: #0f0;
  --error-red: #f00;
  --scanline-opacity: 0.05;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: var(--matrix-green);
  font-family: "Courier New", monospace;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 1rem;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
}

.glitch {
  position: relative;
  animation: glitch-anim var(--glitch-duration) infinite;
}

@keyframes glitch-anim {
  0% {
    text-shadow: none;
  }
  25% {
    text-shadow: -2px -2px 0 var(--error-red), 2px 2px 0 #00f;
  }
  50% {
    transform: skew(5deg);
    text-shadow: 3px -3px 0 var(--error-red), -3px 3px 0 #00f;
  }
  75% {
    text-shadow: -4px 0 0 var(--error-red), 4px 0 0 #00f;
  }
  100% {
    text-shadow: none;
  }
}

.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
  opacity: 0.3;
}

input,
button {
  background: #000;
  color: var(--matrix-green);
  border: 1px solid var(--matrix-green);
  padding: 0.8rem;
  margin: 0.5rem 0;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

button {
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background: var(--matrix-green);
  color: #000;
}

a {
  color: var(--matrix-green);
  text-decoration: none;
  border-bottom: 1px dashed;
  transition: all 0.3s;
}

a:hover {
  color: #000;
  background: var(--matrix-green);
  border-bottom: 1px solid;
}

.confirmation {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--matrix-green);
}

.confirmation-ins {
  animation: glitch-anim var(--glitch-duration) infinite;
}

@media (min-width: 768px) {
  .form-group {
    display: flex;
    gap: 1rem;
  }

  input {
    width: 70%;
  }

  button {
    width: 30%;
  }
}

.error-code {
  font-size: 8rem;
  line-height: 1;
  color: var(--error-red);
}

.banner {
  word-wrap: break-word;
  margin: 0 0;
  position: relative;
  font-size: 90%;
}

hr {
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
  border-top: 1px solid var(--matrix-green);
}
