.input-container {
  width: 100%;
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  max-width: 400px;
  min-width: 250px;

  & > input {
    appearance: none;
    border-radius: 14px;
    color: #121620;
    font-size: 15px;
    height: 48px;
    line-height: 125%;
    outline: none;
    padding: 16px 24px 5px;
    transition: border-color 0.3s ease;
    width: 100%;

    &:focus {
      border-color: #000;
      transition-delay: 0.1s;
    }
  }
}

.input__placeholder {
  color: #8e8e93;
  font-size: 16px;
  left: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    top 0.3s ease,
    color 0.3s ease,
    font-size 0.3s ease;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  pointer-events: none;
}

.input-container > input:focus + .input__placeholder,
.input-container > input:not(:placeholder-shown) + .input__placeholder {
  font-size: 12px;
  top: 12px;
  width: auto;
}
