.form-textfield {
  position: relative;
}

.form-textfield__label {
  font-family: $font-lato;
  font-size: 12px;
  font-weight: bold;
  color: $charcoal-grey;
  text-transform: uppercase;
}

.form-textfield__input-field-container {
  display: flex;
  height: 35px;
  border-radius: 3px;
  margin-bottom: 20px;
  align-items: center;
}

.form-textfield__input-container--default {
  border: 1px solid $gainsboro;
}

.form-textfield__input-container--error {
  border: 1px solid $pure-orange;
}

.form-textfield__input-container--success {
  border: 1px solid $caribbean-green;
}

.form-textfield__input-field-container input {
  flex-grow: 1;
  border: none;
  margin-left: 10px;
  outline: none;
  color: $slate-grey;
}

.form-textfield__message {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 12px;

}

.form-textfield__message--error {
  color: $pure-orange;
}

.form-textfield__message--success {
  color: $caribbean-green;
}

.form-textfield__message--error.form-textfield__message-password, .form-textfield__message--error.form-textfield__message-email {
  position: relative;
  text-align: right;
  margin-top: -5px;
  margin-bottom: 5px;
}

.form-textfield__icon {
  width: 20px;
  height: 20px;
  margin: 6px 8px;
}
