/* =========================
   MODERN SIGNUP PAGE STYLES
   ========================= */

.signup-container {
  background-color: #1F2937;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin: 60px auto;
  max-width: 700px;
  color: #e0e0e0;
   h2{
  text-align: center;
  font-size: 2rem;
  color: #22D3EE;
  margin-bottom: 2rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  }
  
}
.signup-container-black {
    background-color: #1F2937;
}
.form-title {
  text-align: center;
  font-size: 2rem;
  color: #22D3EE;
  margin-bottom: 2rem;
  font-weight: 600;
    font-family: "Poppins", sans-serif;
}

/* Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  text-align: left;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}
 
.signup-container input[type="text"],
.signup-container input[type="email"],
.signup-container input[type="password"],
.signup-container textarea,
.signup-container input[type="tel"],
.signup-container input[type="date"] {
  width: 100%;
  background-color: #161c25;
  border: 1px solid #1F2937;
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input:focus {
  border-color: #bb86fc;
  box-shadow: 0 0 8px rgba(187, 134, 252, 0.6);
  outline: none;
}

/* ===== MODERN SWITCH TOGGLES ===== */
.switch-section {
  margin-top: 2rem;
  text-align: left;
}

.switch-title {
  color: #22D3EE;
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.switch-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #161c25;
  border: 1px solid #161c25;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.8rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.switch-option:hover {
  background-color: #333;
  border-color: #444;
}

.switch-label {
  color: #e0e0e0;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Hide the real checkbox but keep it accessible */
.switch-checkbox-input {
  opacity: 0;
  position: absolute;
  right: 1.2rem;
  width: 40px;
  height: 22px;
  cursor: pointer;
  z-index: 2;
}

/* Visual toggle indicator */
.switch-indicator {
  width: 44px;
  height: 22px;
  border-radius: 12px;
  background-color: #555;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.switch-indicator::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background-color: #e0e0e0;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Checked (ON) state */
.switch-checkbox-input:checked + .switch-indicator {
  background-color: #22D3EE;
}

.switch-checkbox-input:checked + .switch-indicator::before {
  transform: translateX(22px);
  background-color: #000;
}

/* Optional: subtle glow on active */
.switch-checkbox-input:focus + .switch-indicator {
  box-shadow: 0 0 6px #22D3EE;
}


/* Submit Button */
.btn-primary,
.signup-container input[type="submit"]{
  width: 100%;
  background: linear-gradient(90deg, #22D3EE, #0f5964);
  color: #F3F4F6;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* Links Below Form */
.devise-links {
  margin-top: 1.5rem;
  text-align: center;
}

.devise-links a {
  color: #22D3EE;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.devise-links a:hover {
  color: #22D3EE;
}
