:root {
  --theme-color: #67FEFF;
  --scanline-width: 2px;
  --scanline-color: rgba(3, 30, 17, 0.3);
  --scanline-gap: 4px;
  --crt-glow: 0 0 5px var(--theme-color);
  --form-padding: 15px;
  --retro-font: 'VT323', monospace;
}

body {
  margin: 0; padding: 0;
  font-family: var(--retro-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #031e11;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scanline-width);
  background: var(--scanline-color);
  animation: scanline 8s linear infinite;
  z-index: 999;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline-color),
    var(--scanline-color) var(--scanline-width),
    transparent var(--scanline-width),
    transparent var(--scanline-gap)
  );
  pointer-events: none;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

.main-console {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  height: auto;
  min-height: 300px;
  position: relative;
}
#login {
  border-left: 12px solid #041907;
  border-right: 12px solid #041907;
  height: auto;
  min-height: 250px;
  width: 90%;
  max-width: 400px;
  margin: 0 auto;

}
#loginInner{
  width: 100%;
  height: 100%;
  border-left: 4px solid #052713;
  border-right: 4px solid #052713;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cred-title {
  color: var(--theme-color);
  font-size: 20px;
  text-transform: uppercase;
  font-family: var(--retro-font);
}
#loginInner .credentials {
  background: #093A1A;
  width: 100%;
  border: 0px solid black;
  border-left: 10px solid #0B965F;
  color: #0B965F;
  font-size: 20px;
  outline: none;
  padding: 8px;
  box-sizing: border-box;
  font-family: var(--retro-font);
}

.credentials::placeholder {
  color: #0B965F;
  opacity: 0.5;
  font-family: var(--retro-font);
  font-size: 20px;
}

.credentials.message {
  min-height: 100px;
  resize: vertical;
}

.send-button {
  background: #093A1A;
  color: var(--theme-color);
  border: 0px solid black;
  border-left: 10px solid #0B965F;
  padding: 10px 20px;
  font-size: 20px;
  font-family: var(--retro-font);
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.send-button:hover {
  background: #0B965F;
  color: #093A1A;
  border-left-color: var(--theme-color);
}

.title-holder {
  position: relative;
}
.title {
  position: absolute;
  color: var(--theme-color);
  font-size: clamp(40px, 8vw, 75px);
  font-family: 'Arial Black',sans-serif;
  letter-spacing: -0.05em;
  font-weight: 500;
  -webkit-filter: blur(1px);
  left: 50px;
}
.frontmatters-logo{
  --logo-size: clamp(50px, 10vw, 70px);
  position: absolute;
  top: 60px;
  left: 30px;
  width: var(--logo-size);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}
.frontmatters-logo .logo-main {
  width: 100%;
  aspect-ratio: 1;
  filter: blur(0.7px);
  margin: 0;
  padding: 0;
}

.frontmatters-logo .logo-subtitle {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.frontmatters-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.frontmatters-logo svg rect:first-of-type,
.frontmatters-logo svg text:first-of-type {
  filter: blur(0.7px);
}

.frontmatters-logo svg rect:last-of-type,
.frontmatters-logo svg text:last-of-type {
  filter: none;
}

.frontmatters-logo div:first-child {
  font-size: 150px;
  -webkit-transform: rotate(-28deg);
  position: absolute;
  top: -40px;
  left: -30px;
  z-index: 1;
}
.frontmatters-logo .fm-text {
  font-size: calc(var(--logo-size) * 0.8);
  transform: rotate(-45deg);
  display: block;
  position: relative;
  z-index: 2;
  line-height: 1;
}
.sub-title {
  position: absolute;
  background-color: var(--theme-color);
  top: clamp(60px, 12vw, 100px);
  font-size: clamp(24px, 5vw, 50px);
  font-family: sans-serif;
  letter-spacing: -0.05em;
  font-weight: bold;
  -webkit-filter: blur(1px);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 10px;
}
.title:nth-child(2) {
    transform: translate(2px,2px);
}
.title:nth-child(3) {
    transform: translate(-2px,2px);

}
.social-links {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
  padding: 20px 0;
  border-top: 4px solid #052713;
}

.social-link {
  color: #0B965F;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--retro-font);
  font-size: 20px;
  border-left: 10px solid transparent;
  padding-left: 10px;
}

.social-link:hover {
  color: var(--theme-color);
  border-left-color: #0B965F;
}

.social-link svg {
  width: 24px;
  height: 24px;
}
.piece {
  display: block;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
}
.frame {
  background-color: transparent;
  box-shadow: inset 0 0 12rem black,
    inset 0 0 2rem black,
    0 0 2rem black;
  height: 100%;
  position: absolute;
  width: 100%;
  pointer-events: none;
  top:0;
}
.output {
  -webkit-animation: crt-output 10ms infinite, flicker 0.15s infinite;
  animation: crt-output 10ms infinite, flicker 0.15s infinite;
  background-color: #031e11;
  position: fixed;
  text-shadow: 0rem 0.2rem 1rem #0c7b46;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  mix-blend-mode: screen;
}
.scanlines {
  background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.4));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.4));
  background-size: 100% 0.3rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-animation: scanline 10s linear infinite;
  animation: scanline 10s linear infinite;
}

.scanlines::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  opacity: 0.1;
  animation: scanline 6s linear infinite;
}

.scanlines::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #000;
  opacity: 0.15;
  animation: scanline 4s linear infinite;
}

@-webkit-keyframes crt-output {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}
@keyframes crt-output {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

@-webkit-keyframes scanline {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

@keyframes scanline {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

@-webkit-keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}

.glow {
  display: none;
  -webkit-animation: crt-glow 60s infinite;
  animation: crt-glow 60s infinite;
  background: radial-gradient(circle at center, rgb(17, 58, 31) 0%, hsla(140, 54%, 8%, 0.88) 58%, hsla(140, 65%, 8%, 0.57) 80%, rgba(19, 94, 29, 0.27) 93%, rgba(10, 23, 12, 0) 100%);
  opacity: 0.15;
  pointer-events: none;
  position: fixed;
}
@-webkit-keyframes crt-glow {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}
@keyframes crt-glow {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}
::-moz-selection {
  background-color: #14fdce;
  color: #031e11;
}
::selection {
  background-color: #14fdce;
  color: #031e11;
}
.highlighted{
  background-color: #14fdce;
  color: #084020;
  font-family: var(--retro-font);
  -webkit-filter: brightness(3);
  box-shadow: 0px 0px 2px 1px #46FED8;
  padding: 2px;
}
.text-back {
  background: rgba(54, 121, 103, 0.62);
  color: var(--theme-color);
  font-family: var(--retro-font);
  box-shadow: 0px 0px 4px 3px var(--theme-color);
  text-shadow: var(--theme-color) 0px 0px 5px;
  width: 65%;
  position: absolute;
  left: 17.5%;
  font-size: 18px;
  bottom: 50px;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  padding: 6px 0;

}
.blur {
  opacity:0.3;
  transform: translate(1px,1px);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .title {
    left: 20px;
  }
  
  .frontmatters-logo {
    left: 10px;
  }
  
  #loginInner {
    padding: 20px 20px;
  }
  
  .credentials {
    width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 480px) {
  .title-holder {
    margin-top: 60px;
  }
  
  .sub-title {
    width: 90%;
    font-size: 20px;
    word-wrap: break-word;
  }
}

@media (max-width: 768px) {
  :root {
    --form-padding: 10px;
    --scanline-width: 1px;
    --scanline-gap: 3px;
  }
  
  .contact-form {
    margin: 10px;
  }
  
  footer {
    padding: 15px;
  }
}
