@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");
:root {
  --primary-color: #0ff;
  --secondary-color: #f0f;
  --error-color: #ff3333;
  --bg-color: #050505;
  --grid-color: rgba(0, 255, 255, 0.1);
  --font-stack: "Share Tech Mono", monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--font-stack);
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.2)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
}

.glow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.8) 90%
  );
  pointer-events: none;
  z-index: 9;
}

.bg-grid {
  position: absolute;
  width: 200vw;
  height: 200vh;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px)
    translateZ(-200px);
  animation: grid-move 20s linear infinite;
  opacity: 0.3;
  z-index: 1;
}

.login-container {
  position: relative;
  z-index: 5;
  width: 450px;
  padding: 40px;
  border: 2px solid var(--primary-color);
  background: rgba(0, 10, 10, 0.85);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}
.top-left {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.top-right {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}
.bottom-left {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

a {
  text-decoration: none;
}

h1 {
  font-size: 24px;
  letter-spacing: 4px;
  text-shadow: 0 0 10px var(--primary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sub-text {
  font-size: 12px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  opacity: 0.8;
  border-bottom: 1px dashed var(--secondary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

input[type="password"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  color: #fff;
  font-family: var(--font-stack);
  font-size: 18px;
  padding: 10px 5px;
  outline: none;
  transition: 0.3s;
}

input[type="password"]:focus {
  border-bottom-color: var(--primary-color);
  box-shadow: 0 5px 10px -5px rgba(0, 255, 255, 0.3);
}

input::placeholder {
  color: rgba(0, 255, 255, 0.3);
  font-size: 14px;
}

button {
  width: 100%;
  padding: 15px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-stack);
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

button:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px var(--primary-color);
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

button:hover::before {
  left: 100%;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.blink {
  animation: blink 1s infinite;
}

.loader-ring {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hex-decor {
  position: absolute;
  bottom: -50px;
  right: -50px;
  font-size: 100px;
  color: rgba(0, 255, 255, 0.05);
  z-index: -1;
  user-select: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  width: 400px;
  background: #000;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
  padding: 30px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-title {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--secondary-color);
  padding-bottom: 10px;
  text-shadow: 0 0 10px var(--secondary-color);
}

.modal-text {
  color: #fff;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.5;
}

.modal-btn {
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  width: auto;
  min-width: 150px;
}

.modal-btn:hover {
  background: var(--secondary-color);
  color: #000;
  box-shadow: 0 0 15px var(--secondary-color);
}

@keyframes grid-move {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0)
      translateZ(-200px);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px)
      translateZ(-200px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

.glitch-effect:hover {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: var(--secondary-color);
}
