/* === Container & Basis === */
.inlogcontainer {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.inlogformulier {
  background-color: #E6D164;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
}

.inlog_form {
  background: #FFFFEE;
  padding: 1.5rem;
  border-radius: 4px;
}

.inlog_form ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Automatische ruimte tussen formulier-items */
}

.inlog_form li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem; /* Ruimte tussen label en input */
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
}

.inlog_form li:first-child {
  border-bottom: 1px solid #777;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.inlog_form li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* === Logo & Titels === */
#inloglogo {
  font-size: 2rem;
  color: #444;
}

.inlog_form h2 {
  margin: 0;
  font-size: 1.5rem;
}

/* === Labels & Inputs === */
.inlog_form label {
  font-weight: 600;
  color: #333;
}

.inlog_form input[type=text], 
.inlog_form input[type=email], 
.inlog_form input[type=password] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inlog_form input:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* === Specifieke styling voor de Checkbox rij === */
.inlog_form li:has(input[type=checkbox]) {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.inlog_form input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin: 0 0.5rem 0 0;
  vertical-align: middle;
}

.inlog_form li:has(input[type=checkbox]) label {
  order: 1;
}
.inlog_form li:has(input[type=checkbox]) input[type=checkbox] {
  order: 2;
}
.inlog_form li:has(input[type=checkbox]) .form_hint {
  order: 3;
  width: 100%;
  margin-top: 0.4rem;
  position: static !important;
  display: block !important;
}
.inlog_form li:has(input[type=checkbox]) .form_hint::before {
  display: none; /* Pijltje weglaten bij de checkbox hint voor betere leesbaarheid */
}

/* === IE clear buttons verbergen === */
.inlog_form input[type=text]::-ms-clear,
.inlog_form input[type=email]::-ms-clear,
.inlog_form input[type=password]::-ms-reveal {
  display: none;
}

/* === HTML5 Validatie Stijlen === */
.inlog_form input:required {
  background-image: url('../images/red_asterisk.png');
  background-repeat: no-repeat;
  background-position: 98% center;
}

.inlog_form input:required:valid {
  background-image: url('../images/valid.png');
  background-repeat: no-repeat;
  background-position: 98% center;
  border-color: #28921f;
  box-shadow: 0 0 5px #5cd053;
}

.inlog_form input:focus:invalid {
  background-image: url('../images/invalid.png');
  background-repeat: no-repeat;
  background-position: 98% center;
  border-color: #b03535;
  box-shadow: 0 0 5px #d45252;
}

/* === Form Hints (Tooltip stijl) === */
.form_hint {
  background: #d45252;
  border-radius: 4px;
  color: white;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  display: none;
  width: fit-content;
}
/* Toon hint direct onder of naast het veld bij focus */
.inlog_form input:focus ~ .form_hint {
  display: inline-block;
}
.inlog_form input:required:valid ~ .form_hint {
  background: #28921f;
}

button.submit {
  width: 100%;
  background: linear-gradient(to bottom, #68b12f, #50911e);
  border: 1px solid #509111;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  padding: 0.75rem;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 0 #9fd574;
  transition: opacity 0.2s;
}

button.submit:hover {
  opacity: 0.85;
}

button.submit:active {
  box-shadow: inset 0 0 10px 5px #356b0b;
}
