.user-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;  /* Use most of the viewport height */  
}

.profile-container {
  max-width: 512px;
  margin: 0 auto;
  width: 100%;
}

.login-container {
  max-width: 512px;
  margin: 0 auto;
  width: 100%;
}

form, .fake_form {
  background-color: #EDF2F4;
  border: 5px solid #000;
  border-style: double;
  padding: 0;  
  max-width: 512px;
  margin: 0 auto;
  width: 100%;
  border-radius: 8px;
}

form input, textarea,input::placeholder, .fake_form input, .fake_form input::placeholder {
  font-family: "routed-gothic";
  font-size: 16px;
  /* border-radius: 0 !important; */
}

form input::placeholder {
  color: #999;
}

form h2, .fake_form h2 {
  padding: 16px;
  font-size: 16px;
  text-transform: uppercase;
}

form label, .fake_form label {
  font-size: 14px;
  padding: 16px;
  margin: 0;
}

form input, .fake_form input {
  border-radius: 0;
}

.checkbox-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

.checkbox-wrapper label {
  margin: 0;
  padding: 0;
}

.checkbox-wrapper small {
  flex-basis: 100%;
  text-align: center;
}

.checkbox-wrapper input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background-color: #EDF2F4;
  border: 5px solid #000;
  border-style: double;
  position: relative;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

/* Change border and background when checked */
.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: #fff;
  border: 1px solid #3a683a;
  border-style: solid;
}
.checkbox-wrapper a {
  text-decoration: underline;
}

/* Create a beautiful checkmark using a pseudo-element */
.checkbox-wrapper input[type="checkbox"]:checked::before {
  content: '✔';
  font-family: "routed-gothic--narrow";
  position: absolute;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #b5b5b5;
  text-shadow: 
    -1px -1px 0 #333,
    1px -1px 0 #333,
    -1px 1px 0 #333,
    1px 1px 0 #333;
  font-weight: bold;
}


.form-text {
  padding-left: 16px;
  margin: 0;
}

button[type="submit"], .btn-secondary, .btn-primary  {
  display: block;
  width: fit-content;
  padding: 2px 8px 4px 8px;
  line-height: 1.2;
  background-color: #C7FFC7;
  color: #000;
  font-size: 16px;
  text-align: center;
  border: 1px solid #3a683a;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  font-family: "routed-gothic--narrow";
  text-transform: uppercase;
  margin: 8px auto 16px auto;
  letter-spacing: 0.5px;
}

.btn-secondary {
  background-color: #ddd;
}

.login-container {
  margin: 20px 0;
}
.hidden {
  display: none;
}
.toggle-login-method {
  margin-top: 15px;
  font-size: 0.9em;
}
.privacy-notice {
  margin-top: 20px;
  font-size: 0.85em;
  color: #666;
}

.profile-completion-container {
  max-width: 600px;
  margin: 20px auto;
}
.consent-section {
  margin: 15px 0;
} 

.password-container {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
}
.form-text {
  display: block;
  font-size: 14px;
  color: #666;
}
.form-buttons {
  display: flex;
  gap: 10px;
}

form + p a, footer a {
  text-decoration: underline;
}


.tab-nav {
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
  text-align: center;
  margin: 0 auto;
}
.tab-button {
  padding: 10px 15px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
}
.tab-button img {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}
.tab-button.active img {
  opacity: 1;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 0;
}
.checkbox-group {
  margin-top: 10px;
}
.checkbox-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: normal;
}
form h2 + span {
  margin-top: -10px !important;
  margin-bottom: 10px !important;
}

.security-settings .password-section {
  margin: 16px;
}
.password-toggle {
  margin-bottom: 10px;
}
.consent-section {
  margin: 16px;
}

/* ===== MOBILE STYLES ===== */
@media screen and (max-width: 768px) {
  .user-container {
    min-height: 70vh;
  }

  .profile-container,
  .login-container {
    max-width: 100%;
  }

  form, .fake_form {
    max-width: 100%;
    margin: 1rem auto;
  }

  form h2, .fake_form h2 {
    padding: 1rem;
    font-size: clamp(20px, 4vw, 22px) !important;
  }

  form label, .fake_form label {
    font-size: clamp(18px, 3.5vw, 20px) !important;
    padding: 1rem;
  }

  form input, textarea, input::placeholder, .fake_form input, .fake_form input::placeholder {
    font-size: clamp(18px, 3.5vw, 20px) !important;
    padding: 0.6rem;
  }

  .checkbox-wrapper {
    padding: 0 1rem;
  }

  .checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .checkbox-wrapper input[type="checkbox"]:checked::before {
    font-size: 16px;
  }

  .checkbox-wrapper label {
    font-size: clamp(16px, 3.5vw, 18px) !important;
  }

  button[type="submit"], .btn-secondary, .btn-primary {
    font-size: clamp(18px, 4vw, 20px) !important;
    padding: 8px 16px;
    margin: 12px auto;
  }

  .form-text {
    font-size: clamp(16px, 3.5vw, 18px) !important;
  }

  .tab-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .tab-button {
    padding: 8px 12px;
  }

  .tab-button img {
    width: 32px;
    height: 32px;
  }

  .form-group {
    margin-bottom: 16px;
  }
}

/* iPhone SE and smaller phones */
@media screen and (max-width: 375px) {
  form h2, .fake_form h2 {
    font-size: 18px !important;
    padding: 10px;
  }

  form label, .fake_form label {
    font-size: 16px !important;
    padding: 10px;
  }

  form input, textarea, input::placeholder, .fake_form input, .fake_form input::placeholder {
    font-size: 16px !important;
  }

  .checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .checkbox-wrapper label {
    font-size: 14px !important;
  }

  button[type="submit"], .btn-secondary, .btn-primary {
    font-size: 16px !important;
    padding: 6px 12px;
  }

  .form-text {
    font-size: 14px !important;
  }
}