* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Consolas, "Courier New", monospace;
  background:
    linear-gradient(rgba(1, 8, 4, 0.78), rgba(1, 8, 4, 0.86)),
    url("file:///C:/Users/baps1/.cursor/projects/c-chek-tk/assets/c__Users_baps1_AppData_Roaming_Cursor_User_workspaceStorage_b0fdbccd06bc3d5b262c81eaa1a865e8_images_anh-mo-ta-6b3b5f18-c447-42b9-9666-1a8b99cd5e7a.png")
      center / cover no-repeat fixed;
  color: #b4ffc9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 14px;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 255, 102, 0.03) 3px,
    rgba(0, 255, 102, 0.03) 4px
  );
  z-index: 1;
}

.bg-animation {
  position: fixed;
  inset: -20%;
  background: conic-gradient(
    from 60deg,
    rgba(0, 255, 128, 0.2),
    rgba(0, 140, 255, 0.08),
    rgba(0, 255, 149, 0.18),
    rgba(0, 255, 128, 0.2)
  );
  filter: blur(50px);
  opacity: 0.36;
  animation: spinBg 18s linear infinite;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(
    165deg,
    rgba(1, 22, 10, 0.86),
    rgba(1, 14, 8, 0.78) 45%,
    rgba(0, 8, 5, 0.86)
  );
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 0 22px rgba(26, 255, 121, 0.22), 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: center;
}

.page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(
    130deg,
    rgba(120, 255, 178, 0.8),
    rgba(0, 255, 170, 0.15),
    rgba(120, 255, 178, 0.8)
  );
  background-size: 240% 240%;
  animation: borderFlow 4s linear infinite, borderPulse 2.2s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.container::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    105deg,
    rgba(0, 255, 140, 0) 35%,
    rgba(0, 255, 140, 0.08) 49%,
    rgba(0, 255, 140, 0) 63%
  );
  transform: translateX(-35%);
  animation: sweepGlow 5.2s linear infinite;
  pointer-events: none;
}

h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.2;
  color: #7dffb0;
  text-shadow: 0 0 10px rgba(19, 255, 118, 0.45);
  letter-spacing: 1px;
  font-weight: 800;
}

.hint {
  margin-top: 0;
  margin-bottom: 18px;
  color: #9debb8;
  line-height: 1.55;
  text-align: center;
  opacity: 0.94;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #8effb5;
  text-transform: uppercase;
  text-align: center;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid rgba(72, 255, 154, 0.42);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  background: rgba(1, 12, 7, 0.75);
  color: #c5ffd9;
  transition: all 0.2s ease;
  font-family: inherit;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: rgba(166, 255, 201, 0.52);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: 2px solid rgba(72, 255, 154, 0.35);
  border-color: #62ffac;
  box-shadow: 0 0 16px rgba(0, 255, 132, 0.2);
}

button {
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border: 1px solid rgba(85, 255, 160, 0.75);
  border-radius: 12px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #0d4f2a, #13a05a);
  color: #e7ffef;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(20, 255, 130, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    filter 0.16s ease;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(20, 255, 130, 0.45);
}

textarea {
  margin-top: 0;
  resize: vertical;
  min-height: 185px;
  line-height: 1.45;
}

code {
  color: #7dffb0;
  background: rgba(0, 255, 128, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

.hidden {
  display: none;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #ff8f8f;
  text-shadow: 0 0 8px rgba(255, 90, 90, 0.3);
}

@keyframes spinBg {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.5;
    filter: drop-shadow(0 0 3px rgba(40, 255, 145, 0.35));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(40, 255, 145, 0.75));
  }
}

@keyframes sweepGlow {
  from {
    transform: translateX(-45%) rotate(0deg);
  }
  to {
    transform: translateX(45%) rotate(0deg);
  }
}

@media (max-width: 620px) {
  .container {
    padding: 18px;
  }

  h1 {
    font-size: 24px;
  }
}
