/* Apply Gabarito font to all text */
body, .navbar, .signup-container, h3, label, .steps, .footer-text, input, button {
  font-family: 'Gabarito', sans-serif;
}

body {
  background-image: url('/images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Gabarito', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Container wrapper */
.container-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  padding: 40px;
  box-sizing: border-box;
}

.signup-container {
  background-color: #22382d;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: white;
  box-sizing: border-box;
}

h3 {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Gabarito', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: white;
  letter-spacing: 0.5px;
}

/* Stepper Styles */
.steps-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white; /* Set step labels to white */
  flex: 1;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.step-indicator.active .step-circle {
  background-color: #34D399;
  color: white;
}

  .step-label {
    font-family: 'Gabarito', sans-serif;
    font-size: 14px;
    margin-top: 5px;
    color: white; /* Step label text color */
    text-align: center;
    /* Ensure labels wrap nicely if longer */
    white-space: normal;
    font-weight: 400;
    letter-spacing: 0.2px;
  }
  
  .step-indicator.active .step-label {
    font-weight: bold;
    color: #4CAF50 !important;
  }
  
  .step-indicator.completed .step-label {
    font-weight: bold;
    color: #4CAF50 !important;
  }

/* Step line styles */
.step-line {
  height: 2px;
  background-color: gray;
  flex-grow: 1;
  align-self: center;
}

.step-line.active {
  background-color: #34D399;
}

/* Labels */
/* Container width for labels, password requirements, and checkbox group */
.input-label,
.checkbox-group {
  width: 400px;   /* increased width to match inputs */
  margin-left: 20px;  /* offset slightly to the right */
  color: white;
  font-family: 'Gabarito', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* Inputs */
.signup-container input[type="email"],
.signup-container input[type="password"],
.signup-container input[type="text"] {
  width: 400px;    /* increased width */
  padding: 12px 15px;
  margin: 10px 0 16px 20px; /* offset slightly to the right */
  border-radius: 8px;
  border: none;
  font-family: 'Gabarito', sans-serif;
  font-size: 15px;
  font-weight: 400;
  display: block;
  box-sizing: border-box;
}

/* Password wrapper to contain the eye icon */
.password-wrapper {
  position: relative;
  width: 400px;
  margin: 10px 0 16px 20px; /* offset slightly to the right */
  display: block;
}

.signup-container .password-wrapper .password-input {
  width: 100%;
  padding: 12px 40px 12px 15px; /* extra right padding for eye icon */
  border-radius: 8px;
  border: none;
  font-family: 'Gabarito', sans-serif;
  font-size: 15px;
  font-weight: 400;
  box-sizing: border-box;
  margin: 10px 0 16px 0; /* reset generic input left margin inside wrapper */
  display: block;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 18px;
  user-select: none;
}

/* Password requirements */
#password-requirements ul {
  list-style: none;
  padding-left: 0;
  margin-left: 30px;
  margin-top: -5px;
  font-size: 14px;
}

#password-requirements li {
  display: flex;
  align-items: center;
  margin: 5px 0;
  padding-left: 0;
  color: white;
}

#password-requirements li.valid {
  color: #34d399;
}

#password-requirements li.invalid {
  color: white;
}

#password-requirements li.valid::before {
  content: "✔ ";
  color: #34d399;
  margin-right: 10px;
}

#password-requirements li.invalid::before {
  content: "✘ ";
  color: white;
  margin-right: 10px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-weight: normal;
  font-size: 12px;
  margin-top: 20px;
  line-height: 1.4;
}

/* Checkbox input */
.checkbox-group input[type="checkbox"] {
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

/* Checkbox label */
.checkbox-group label {
  margin: 0 !important;
  margin-top: 2px !important;
  cursor: pointer;
  color: white;
  font-weight: normal;
  flex: 1 !important;
}

/* Checkbox links */
.checkbox-group a {
  color: #34D399;
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: #2bb58c;
}


/* Submit Button */
.btn-primary {
  display: block;
  width: 70%;
  margin: 30px auto 0 auto;
  padding: 12px;
  background-color: #1a5f3c;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 17px;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #238f6e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 20px 0;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 7px;
  margin-bottom: 7px;
  color: #fff;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #fff;
  opacity: 0.5;
}

.divider span {
  padding: 0 15px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}

/* Google sign up button */
.google-btn {
  background-color: #ffffff;
  color: #444;
  padding: 10px;
  width: 70% !important;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
  background-color: #f8f9fa;
  border-color: #1a5f3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
}

.google-btn img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.google-btn:hover img {
  transform: scale(1.1);
}

/* Footer link */
.footer-text {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: white;
}

.footer-text a {
  color: white;
  font-weight: 500;
  text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .container-wrapper {
    padding: 20px;
    max-width: 100%;
  }
  
  .signup-container {
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    max-width: none;
  }

  /* Step indicator mobile layout - horizontal */
  .steps-wrapper {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 5px !important;
    padding: 0 5px !important;
    align-items: flex-start !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .step-indicator {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
    min-width: 60px !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: none !important;
  }

  .step-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }

  .step-label {
    font-size: 10px !important;
    line-height: 1.2 !important;
    max-width: 60px !important;
    text-align: center !important;
    word-wrap: break-word !important;
  }

  .step-line {
    display: block !important;
    height: 2px !important;
    min-width: 10px !important;
    margin: 0 3px !important;
    top: -20px !important;
  }

  /* Form elements mobile */
  .input-label,
  .checkbox-group {
    width: 100%;
    margin-left: 0;
    font-size: 14px;
    margin-top: 20px;
  }

  .checkbox-group {
    gap: 10px !important;
    flex-direction: row !important;
  }

  .checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
  }

  .checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
    color: white;
  }

  .signup-container input[type="email"],
  .signup-container input[type="password"],
  .signup-container input[type="text"] {
    width: 100%;
    margin-left: 0;
  }

  .password-wrapper {
    width: 100%;
    margin-left: 0;
  }

  #password-requirements ul {
    margin-left: 0;
  }

  .btn-primary {
    width: 100%;
  }

  .google-btn {
    width: 60% !important;
  }

  .divider {
    width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container-wrapper {
    padding: 15px;
  }
  
  .signup-container {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    max-width: none;
  }

  /* Step indicator extra small */
  .steps-wrapper {
    gap: 2px !important;
    padding: 0 2px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .step-indicator {
    min-width: 50px !important;
    flex: 1 !important;
  }

  .step-circle {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    margin-bottom: 3px !important;
  }

  .step-label {
    font-size: 8px !important;
    line-height: 1.1 !important;
    max-width: 50px !important;
  }

  .step-line {
    height: 1px !important;
    min-width: 5px !important;
    margin: 0 1px !important;
    top: -15px !important;
  }

  /* Checkbox group extra small */
  .checkbox-group {
    font-size: 13px;
    margin-top: 15px;
  }

  .checkbox-group {
    gap: 8px !important;
    flex-direction: row !important;
  }

  .checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
  }

  .checkbox-group label {
    font-size: 13px;
    line-height: 1.3;
    color: white;
  }
}
