/* Joomla 6 login compatibility; retain the existing template colours and panel. */
#content .com-users-login.login {
  width: 350px;
  max-width: 100%;
}
#content .com-users-login fieldset,
#content .com-users-login .control-group,
#content .com-users-login .controls,
#content .com-users-login .password-group,
#content .com-users-login .input-group {
  min-width: 0;
}
#content .com-users-login .control-group input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  max-width: 100%;
}
#content .com-users-login .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #4e4e4e;
  border-radius: 3px;
  background: #F4F4F4;
  color: #4e4e4e;
  font: inherit;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}
#content .com-users-login .btn-secondary svg,
#content .com-users-login .btn-secondary img {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 1.25em;
  margin: 0;
  fill: currentColor;
}
#content .com-users-login .input-password-toggle {
  margin-bottom: 15px;
}
#content .com-users-login .com-users-login__submit .btn-secondary {
  width: 100%;
  margin-bottom: 15px;
}
#content .com-users-login .com-users-login__options {
  margin-top: 15px;
}
#content .com-users-login .com-users-login__options a {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#content .com-users-login :is(a, button, input):focus-visible {
  outline: 2px solid #1674b9;
  outline-offset: 3px;
}

/* Keep Joomla validation feedback below the field label. */
#content .com-users-login .control-label .form-control-feedback {
  display: block;
}

/* Centre the submit button and its label on both axes. */
#content .com-users-login button[type="submit"].btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 0;
  line-height: 1.2;
}
