/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  height: 100vh;
}

/* ===== Background same as quiz/admin panels ===== */
.signup-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f4f7fa, #e0f7fa);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ===== Glassmorphic Card ===== */
.signup-box {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 40px 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signup-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #263238;
  font-weight: 600;
}

/* ===== Input Groups ===== */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #37474f;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.8px solid #cfd8dc;
  font-size: 15px;
  transition: 0.3s ease;
  background: #f9fbff;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #00bcd4;
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

/* ===== Password helpers ===== */
.requirements {
  font-size: 12.5px;
  color: #546e7a;
  margin-top: 6px;
  display: block;
}

.error {
  font-size: 12.5px;
  color: #d32f2f;
  margin-top: 5px;
  display: block;
}

/* ===== Button ===== */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #007bff, #00bcd4);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover:enabled {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

button[disabled] {
  background: #cfd8dc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===== Login Redirect ===== */
.login-redirect {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: #455a64;
}

.login-redirect a {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}

.login-redirect a:hover {
  text-decoration: underline;
}

/* ===== Utilities ===== */
.hidden {
  display: none;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .signup-box {
    padding: 30px 25px;
  }
}