/* Material Design 3 Form */
.outlined-md3form > form > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
[class*="md3form"] .form-group {
  position: relative;
  margin-bottom: 1rem;
  & .form-control {
	width: 100%;
	font-size: 1rem;
	outline: 0px solid transparent;
	background: transparent;
	font-family: inherit;
	color: var(--md-sys-color-on-surface);
	z-index: 4;
	display: flex;
  &:focus {
    box-shadow: none
    }
  }
  & textarea {
  min-height: 120px;
  resize: vertical;
  }
  & label {
  left: 1rem;
  top: 1rem;
  position: absolute;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
  pointer-events: none;
  margin: 0;
  }
}


.outlined-md3form .form-group:not(:has(input[type="submit"])) {
  background-color: transparent;
  border-radius: 4px;
  & .form-control {
  padding: 16px;
  outline: 1px solid var(--md-sys-color-outline);
  border-radius: 4px;
  transition: border-color 0.2s ease;
  height: 3rem;
  }
  & label {
  line-height: 1rem;
  padding: 0 4px;
  z-index: 10;
  background-color: var(--md-sys-color-surface-container);
  }
}

.filled-md3form .form-group:not(:has(input[type="submit"])) {
  background-color: var(--md-sys-color-surface-variant);
  border-radius: 4px 4px 0 0;
  &::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--md-sys-color-outline);
    z-index: 1;
  }
  &::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--md-sys-color-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
  }
  & .form-control {
  width: 100%;
  font-size: 1rem;
  height: 100%;
  padding: 24px 16px 8px;
  }
}

/* Form Interactions */
.filled-md3form .form-group:focus-visible {
  /* background-color: var(--md-sys-color-surface); */
}
.outlined-md3form .form-group:focus-visible .form-control {
  outline-color: var(--md-sys-color-primary);
  outline-width: 2px;
}
[class*="md3form"] .form-group:has(.form-control:not(:placeholder-shown)) > label,
[class*="md3form"] .form-group:has(.form-control:focus) > label {
  color: var(--md-sys-color-primary);
}
.filled-md3form .form-group:has(.form-control:not(:placeholder-shown)) > label,
.filled-md3form .form-group:has(.form-control:focus) > label {
  transform: translateY(-12px) scale(0.75);
}
.outlined-md3form .form-group:has(.form-control:not(:placeholder-shown)) > label,
.outlined-md3form .form-group:has(.form-control:focus) > label {
  transform: translateY(-26px) scale(0.75);
}
.filled-md3form .form-group:has(.form-controll:focus)::after {
  transform: scaleX(1);
}
/* fine form interactions */

/* fine md3 form */


/* mostra password */
.input-group-append {
    margin-left: -1px;
    position: absolute;
    right: 0;
    height: 100%;
    z-index: 10;
}
.showpassword {
  display: inline-flex;
  place-items: center;
  background-color: transparent;
  position: relative;
  z-index: 2;
  height: 100%;
  box-shadow: none;
  border: none;
  padding: 0 1rem;
  color: var(--md-on-surface);
}
.showpassword .fa-eye:before {
  content: "\e8f4";
  font-family: var(--md3-icon-font);
}
.showpassword .fa-eye-slash:before {
  content: "\e8f5";
  font-family: var(--md3-icon-font);
}
.showpassword:hover, .showpassword:active, .showpassword:focus {
  background-color: transparent !important;
  color: var(--md-on-surface) !important;
  box-shadow: none !important;
}
.showpassword:before {
  background-color: transparent !important;
}
/* fine mostra password */