.signup-hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-band) 100%);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.signup-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.signup-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 680px;
  width: 100%;
}

.signup-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.signup-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-family: silver;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.signup-subtitle {
  color: #666;
  font-size: 1.1rem;
  font-weight: 300;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error .error-message {
  display: block;
  animation: errorFadeIn 0.3s ease;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group.error input {
  border-color: #dc3545;
}

.form-group.error label {
  color: #dc3545;
}

.form-group.success input {
  border-color: #28a745;
}

/* PASSWORD STRENGTH */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 0%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.2rem;
  color: #888;
  z-index: 2;
}

/* EYE BUTTON STYLING */
.toggle-password {
  position: absolute;
  right: 1.2rem;
  cursor: pointer;
  color: #888;
  z-index: 10;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--accent);
}

.signup-form input {
  width: 100%;
  padding: 1.2rem 3.5rem 1.2rem 3.5rem;
  /* Added right padding for eye icon */
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 145, 77, 0.1);
  background: white;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-check label {
  cursor: pointer;
  color: #666;
}

.form-check a {
  color: var(--accent);
  text-decoration: none;
}

.signup-divider {
  position: relative;
  text-align: center;
  margin: 2.5rem 0;
  color: #999;
  font-size: 0.9rem;
}

.signup-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.signup-divider span {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 1.5rem;
}


.signup-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.signup-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

/* ==========================================
   RESPONSIVE OVERHAUL (From Scratch)
   ========================================== */

/* Tablet & Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .form-group,
  .form-check,
  .signup-btn {
    grid-column: span 2;
  }
}

/* Tablet / Mobile Layout Transition (max-width: 768px) */
@media (max-width: 768px) {
  .signup-hero {
    padding: 3rem 0;
    min-height: calc(100svh - 70px);
  }

  .signup-card {
    padding: 2.5rem 2rem;
    margin: 0 1rem;
  }

  .signup-form {
    grid-template-columns: 1fr;
    /* Stack columns on tablet */
    gap: 1rem;
  }

  .form-group.half-width {
    grid-column: span 1;
    /* Reset to single column since grid is 1fr */
  }
}

/* Standard Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .signup-hero {
    padding: 2rem 0;
  }

  .signup-card {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .signup-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .signup-subtitle {
    font-size: 0.95rem;
  }

  .signup-header {
    margin-bottom: 1.5rem;
  }

  .signup-form input {
    padding: 1rem 2.8rem;
    font-size: 0.95rem;
  }
}

/* Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
  .signup-card {
    padding: 1.5rem 1rem;
    border-radius: 20px;
    margin: 0 0.5rem;
  }

  .signup-title {
    font-size: 1.6rem;
  }

  .signup-form input {
    padding: 0.8rem 2.5rem;
    font-size: 0.9rem;
  }

  .input-icon {
    left: 0.8rem;
    font-size: 1rem;
  }

  .password-toggle {
    right: 0.8rem;
  }

  .signup-btn {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .signup-divider {
    margin: 1.5rem 0;
  }

  .referral-toggle-btn {
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
  }
}

.nav-back {
  color: var(--text-light);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 50%;
}

.server-message {
  padding: 1rem;
  border-radius: 12px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.server-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* REFERRAL CODE TOGGLE */
.referral-toggle-wrapper {
  margin-top: -0.5rem;
}

.referral-toggle-btn {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 145, 77, 0.06);
  border: 1.5px dashed rgba(255, 145, 77, 0.35);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
}

.referral-toggle-btn:hover {
  background: rgba(255, 145, 77, 0.12);
  border-color: var(--accent);
}

.hidden {
  display: none;
}