.Wrapper {
  /* internal, for label and textarea */
  display: flex;
  flex-direction: column;
  height: 100%;

  /* external - take all vertical space in parent container with flex-direction: column */
  flex: 1;
}

.TextArea {
  resize: none;
  min-height: 80px;
  flex: 1;
}

.Input {
  display: block;
  outline: none;
  box-sizing: border-box;
  height: var(--input-height);
  width: 100%;
  padding-left: 3px;
  padding-right: 5px;
  color: var(--input-color);
  font-size: var(--input-font-size);
  transition: 0.2s ease background-color;

  box-shadow: none;
  border: none;
  border-radius: 0; /* iPad adds border */
  border-bottom: var(--input-border);
  background-color: lightyellow;
}

.AnimatedBorder {
  position: relative;
  display: block;
}
.AnimatedBorder:before,
.AnimatedBorder:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 0;
  position: absolute;
  background: var(--input-focus-border-color);
  transition: 0.2s ease all;
}
.AnimatedBorder:before {
  left: 50%;
}
.AnimatedBorder:after {
  right: 50%;
}

.Input:focus {
  /*border-bottom-color: transparent;*/
}

.Input:focus ~ .AnimatedBorder:before,
.Input:focus ~ .AnimatedBorder:after {
  width: 50%;
}

.Input.Error {
  /*border-bottom-color: transparent;*/
  background: var(--input-error-background-color);
}
.Input.Error ~ .AnimatedBorder:before,
.Input.Error ~ .AnimatedBorder:after {
  background: var(--input-error-border-color);
  width: 50%;
}

.Input.Disabled {
  color: var(--input-disabled-color);
  background-color: var(--input-disabled-background);
  box-shadow: none;
}

.Input.WithIcon {
  padding-right: 20px;
}
.Icon {
  position: absolute;
  right: 6px;
  bottom: 6px;
}
