@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
  overflow-x: hidden;
  flex-direction: column;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
  width: 0 !important;
}

/* Background lines animation */
.lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: auto;
  width: 90vw;
  display: flex;
  justify-content: space-between;
}

.line {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
}

.line::after {
  content: "";
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #8a00d3 75%,
    #8a00d3 100%
  );
  animation: drop 9.5s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1)::after {
  animation-delay: 0.5s;
}

.line:nth-child(2)::after {
  animation-delay: 1s;
}

.line:nth-child(3)::after {
  animation-delay: 1.5s;
}

.line:nth-child(4)::after {
  animation-delay: 2s;
}

.line:nth-child(5)::after {
  animation-delay: 2.5s;
}

.line:nth-child(6)::after {
  animation-delay: 3s;
}

.line:nth-child(7)::after {
  animation-delay: 3.5s;
}

.line:nth-child(8)::after {
  animation-delay: 4s;
}

.line:nth-child(9)::after {
  animation-delay: 4.5s;
}

.line:nth-child(10)::after {
  animation-delay: 5s;
}

.line:nth-child(11)::after {
  animation-delay: 5.5s;
}

.line:nth-child(12)::after {
  animation-delay: 6s;
}

.line:nth-child(13)::after {
  animation-delay: 6.5s;
}

.line:nth-child(14)::after {
  animation-delay: 7s;
}

@keyframes drop {
  0% {
    top: -50%;
  }

  100% {
    top: 110%;
  }
}

.background-grid {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  background: #121212;
  overflow: hidden;
}

/* Main container */
.MainForm {
  padding: 30px 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 700px;
  background: rgba(15, 15, 20, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(138, 0, 211, 0.5);
  box-shadow: 0 0 30px rgba(138, 0, 211, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.MainForm:hover {
  transform: translate(-50%, -50%) scale(1.01);
}

/* Blob animations */
.path {
  fill: #8a00d3;
}

.blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.svg.small {
  position: absolute;
  width: 4em;
  height: 4em;
  opacity: 0.4;
  filter: blur(12px);
  animation: anim 4s infinite ease-in-out;
}

.svg.small:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.svg.small:nth-child(2) {
  top: 60%;
  left: 70%;
  animation-delay: 1s;
}

.svg.small:nth-child(3) {
  top: 40%;
  left: 30%;
  animation-delay: 2s;
}

.svg.small:nth-child(4) {
  top: 30%;
  left: 60%;
  animation-delay: 2s;
}

.svg.small:nth-child(5) {
  top: 70%;
  left: 40%;
  animation-delay: 3s;
}

@keyframes anim {
  0% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Layout containers */
.inner-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(20, 10, 30, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(138, 0, 211, 0.3);
  padding: 1.2rem;
}

.top-section {
  display: flex;
  align-items: stretch;
  position: relative;
}

.vseparator {
  border-radius: 5px;
  border-left: 2px solid rgba(138, 0, 211, 0.5);
  position: absolute;
}

.logo {
  position: relative;
  overflow: visible;
}

.logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(138, 0, 211, 0.4) 0%,
    rgba(138, 0, 211, 0.1) 60%,
    transparent 100%
  );
  filter: blur(40px);
  z-index: 0;
}

.logo img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(138, 0, 211, 0.5));
}

/* Form elements */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: transparent;
  border-radius: 25px;
  backdrop-filter: blur(8.2px);
  -webkit-backdrop-filter: blur(8.2px);
  transition: background 0.4s ease-in-out;
}

.wave-group {
  position: relative;
}

.wave-group .input {
  font-size: 16px;
  padding: 10px 10px 10px 5px;
  display: block;
  width: 200px;
  border: none;
  border-bottom: 1px solid rgba(138, 0, 211, 0.5);
  background: transparent;
  color: #ffffff;
}

.wave-group .input:focus {
  outline: none;
}

.wave-group .label {
  color: #999;
  font-size: 18px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 5px;
  top: 10px;
  display: flex;
}

.wave-group .label-char {
  transition: 0.2s ease all;
  transition-delay: calc(var(--index) * 0.05s);
}

.wave-group .input:focus ~ label .label-char,
.wave-group .input:valid ~ label .label-char {
  transform: translateY(-20px);
  font-size: 14px;
  color: #8a00d3;
}

.wave-group .bar {
  position: relative;
  display: block;
  width: 200px;
}

.wave-group .bar:before,
.wave-group .bar:after {
  content: "";
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #8a00d3;
  transition: 0.2s ease all;
}

.wave-group .bar:before {
  left: 50%;
}

.wave-group .bar:after {
  right: 50%;
}

.wave-group .input:focus ~ .bar:before,
.wave-group .input:focus ~ .bar:after {
  width: 50%;
}

/* Button styles */
.btn {
  font-size: 1.1rem;
  padding: 10px;
  border: none;
  border-radius: 7px;
  text-transform: uppercase;
  background-color: rgba(20, 10, 30, 0.7);
  outline: 1px solid #8a00d3;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:active {
  transform: scale(0.95);
}

.btn:hover {
  background: #8a00d3;
  color: #171717;
}

.labels {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
}

.labels label {
  color: #ccc;
  font-size: 0.9rem;
}

/* Utility buttons */
.discord-btn,
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0;
  flex: 1 1 0;
  margin: 0;
  background-color: rgba(20, 10, 30, 0.7);
  border: 1px solid #8a00d3;
  border-radius: 7px;
  color: #fff;
  transition: all 0.3s ease;
  min-height: 60px;
  /* Add this line for bigger height */
  font-size: 1.2rem;
  /* Optional: make text/icon bigger */
}

.discord-btn:hover,
.download-btn:hover {
  background-color: #8a00d3;
  color: #171717;
}

.discord-btn:hover .Discord-SVG {
  fill: #171717;
}

/* Custom cursor toggle */
.cursor-default {
  cursor: auto;
}

.cursor-custom {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' ><path d='M3 2l18 10-8 2-2 8L3 2z' fill='none' stroke='%238a00d3' stroke-width='1'/></svg>")
      0 0,
    auto;
}

.cursor-toggle {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 2px solid #8a00d3;
  border-radius: 50%;
  background: rgba(20, 10, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  z-index: 1000;
}

.cursor-toggle:hover,
.cursor-toggle:focus {
  background: rgba(138, 0, 211, 0.3);
  transform: scale(1.1);
}

.cursor-toggle .cursor-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  stroke: #8a00d3;
  fill: none;
}

/* Notification container */
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  display: none;
}

.loading-container {
  width: 300px;
  height: 300px;
  background: rgba(20, 10, 30, 0.85);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 30px rgba(138, 0, 211, 0.4);
  border: 1px solid rgba(138, 0, 211, 0.7);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.loading-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(138, 0, 211, 0.2),
    transparent
  );
  animation: pulse 2s linear infinite;
}

.loading-container::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg,
    transparent,
    rgba(138, 0, 211, 0.1),
    transparent
  );
  transform: rotate(30deg);
  animation: mirror-effect 8s linear infinite;
}

@keyframes mirror-effect {
  0% {
    transform: rotate(30deg) translateY(-10%);
    opacity: 0.3;
  }

  50% {
    transform: rotate(40deg) translateY(0%);
    opacity: 0.5;
  }

  100% {
    transform: rotate(30deg) translateY(-10%);
    opacity: 0.3;
  }
}

@keyframes pulse {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.loading-character {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  z-index: 5;
  filter: drop-shadow(0 0 10px rgba(138, 0, 211, 0.8));
}

.loading-text {
  color: white;
  font-size: 16px;
  margin-top: 15px;
  letter-spacing: 1px;
  z-index: 5;
  text-shadow: 0 0 10px rgba(138, 0, 211, 0.8);
}

/* Responsive styles */
@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .MainForm {
    padding: 20px 15px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
  }

  .MainForm::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
  }

  .logo {
    flex: 0 0 auto !important;
    width: 50% !important;
    max-width: 200px;
    right: 0 !important;
  }

  .vseparator {
    display: none;
  }

  #loginForm {
    flex: 0 0 auto !important;
    width: 100%;
    align-items: center;
  }

  .button-row {
    flex-direction: column;
  }

  .inner-container[style="flex: 0 0 74%; margin: 0"] {
    flex: 0 0 auto !important;
    width: 100%;
  }

  #socialForm {
    display: none;
  }

  #cursorToggle {
    display: none;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.6rem;
  }

  .wave-group .input,
  .wave-group .bar,
  .btn {
    max-width: 100%;
  }

  .MainForm {
    padding: 10px;
  }

  .labels label {
    font-size: 14px;
  }

  .logo {
    width: 70% !important;
  }
}

#socialForm {
  flex-direction: column !important;
  gap: 10px !important;
  width: 100%;
  align-items: stretch !important;
  justify-content: stretch !important;
}

/* Added for button row */
.button-row {
  display: flex;
  width: 100%;
  gap: 1rem;
  margin-top: 15px;
}
