@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Vazirmatn;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: 400% 400%;
}

.container {
  width: 380px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pop 0.6s ease;
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

h2 {
  text-align: center;
  margin-bottom: 15px;
}

input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 10px #3b82f644;
}

button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  box-shadow: 0 0 20px #2563eb55;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px #7c3aed66;
}

.error {
  color: #ff4d4d;
  font-size: 12px;
  margin-top: 5px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e5e7eb;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  display: none;
}

.checkbox label {
  position: relative;
  padding-right: 28px;
  cursor: pointer;
}

.checkbox label::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.checkbox label::after {
  content: "✔";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 12px;
  color: #60a5fa;
  transition: 0.2s ease;
}

.checkbox input:checked + label::before {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  box-shadow: 0 0 10px #3b82f655;
}

.checkbox input:checked + label::after {
  transform: translateY(-50%) scale(1);
}

.checkbox:hover label::before {
  border-color: #60a5fa;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #030712;
  overflow: hidden;
}
.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
}
.background::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, #2563eb80 0%, transparent 25%),
    radial-gradient(circle at 80% 20%, #7c3aed80 0%, transparent 25%),
    radial-gradient(circle at 50% 80%, #06b6d480 0%, transparent 25%);
  filter: blur(80px);
  animation: aurora 15s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% {
    transform: translate(-5%, -5%) scale(1);
  }
  50% {
    transform: translate(5%, 5%) scale(1.2);
  }
  100% {
    transform: translate(-3%, 8%) scale(1.1);
  }
}
.glow-1,
.glow-2 {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  z-index: -1;
}
.glow-1 {
  width: 400px;
  height: 400px;
  background: #2563eb;
  top: 10%;
  left: -100px;
  animation: float 10s infinite alternate;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  bottom: -100px;
  right: -100px;
  animation: float 14s infinite alternate-reverse;
}
@keyframes float {
  to {
    transform: translateY(-100px) translateX(50px);
  }
}

@media (max-width: 480px) {
  .container {
    width: 90%;
    margin: 0 auto;
  }

  input::placeholder {
    color: white;
    opacity: 0.8;
  }
}
