/* Shared Joomla 6 login field geometry and password toggle styling. */
.login-form form > .form-group.label-floating > .input-group,
.login-form form > .form-group.label-floating .password-group,
.login-form form > .form-group.label-floating .password-group > .input-group {
  width: 100%;
}
.login-form form > .form-group.label-floating .password-group .form-control {
  width: 100%;
}
.login-form form > .form-group.label-floating .input-password-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #263238;
  font: inherit;
  font-weight: normal;
  line-height: inherit;
  text-transform: none;
}
.login-form form > .form-group.label-floating .input-password-toggle:hover {
  background: transparent;
  box-shadow: none;
  color: #263238;
}
.login-form form > .form-group.label-floating .input-password-toggle:focus-visible {
  outline: 2px solid #03a9f4;
  outline-offset: 3px;
}

/* The password input spans the row; the semantic show button and the real
   remember checkbox share the next row at every viewport width. */
.login-form .password-group > .input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 16px;
}
.login-form .password-group .form-control {
  grid-column: 1 / -1;
  min-width: 0;
}
.login-form .input-password-toggle.checkbox-material {
  grid-column: 1;
  justify-self: start;
  gap: 8px;
}
.login-form .input-password-toggle.checkbox-material .icon-fw {
  font-size: 20px;
}
.login-form .login-remember {
  grid-column: 2;
  justify-self: end;
  margin: 0;
}
.login-form .login-remember label {
  margin: 0;
  color: #263238;
  font: inherit;
  font-weight: normal;
}

/* Font Awesome 4 is loaded by this template; Joomla's icon-* names need a map. */
.input-password-toggle .icon-fw::before { font-family: FontAwesome; font-style: normal; }
.input-password-toggle .icon-eye::before { content: "\f06e"; }
.input-password-toggle .icon-eye-slash::before { content: "\f070"; }

.login-form .input-password-toggle .icon-fw { color: #7cb342; }
