*{padding: 0; margin: 0;}

body {
  background: radial-gradient(circle at top left, #072d36 0%, #06051e 60%, #1a0527 100%);
  overflow: hidden;
  font-family: inter;
}

canvas {
  opacity: 0.5;
}

.glass-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  width: 320px;
  text-align: center;
  color: white;
  overflow: hidden;

background: rgba(255, 255, 255, 0.05);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(3.8px);
-webkit-backdrop-filter: blur(3.8px);
border: 1px solid rgba(255, 255, 255, 0.03);

  z-index: 10;}

  .form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tab {
  background: transparent;
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}

.tab.active {
  background: rgba(255, 255, 255, 0.15);
}

.close-btn {
  font-size: 1.2rem;
  cursor: pointer;
  color: #aaa;
}

h2 {
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}


.name-fields {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.name-fields input {
  flex: 1;
  min-width: 0;
}

form input {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

form input::placeholder {
  color: #ccc;
}

.primary-btn {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #9139ed, #6e20d9);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.divider {
  text-align: center;
  color: #999;
  font-size: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.oauth-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.oauth-buttons button {
  flex: 1;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.terms {
  font-size: 0.65rem;
  color: #aaa;
  margin-top: 1rem;
}

.terms a {
  color: #ccc;
  text-decoration: underline;
}
.toggle-buttons {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 4px;
  display: inline-flex;
}

.tab {
  border: none;
  background: transparent;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tab.active {
  background: white;
  color: #000;
}
.form-subtext {
  font-size: 0.8rem;
  color: #ccc;
  text-align: center;
  margin-top: 0.8rem;
}

.form-subtext span {
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
}

.form-error {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.08);
  border: 1px solid #ff4d4f;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0 0 0;
  font-size: 14px;
  font-weight: 500;
  display: block;
  min-height: 20px;
}
