@import "../../styles/colors.scss";
@import "../../styles/fonts.scss";

.light_text_input_wrapper {
  .text_input {
    color: $orangePrimary;
    border: 0.2px solid $greyTertiary;
    background: $whiteBlue;
    &:focus {
      border: 0.2px solid $orangeLight;
    }
  }
}

.dark_text_input_wrapper {
  .text_input {
    color: $yellow;
    border: none;
    border: 0.2px solid $greySecondary;
    background: $blackTertinary;
    &:focus {
      border: 0.2px solid $orangeLight;
    }
  }
}

.light_text_input_wrapper,
.dark_text_input_wrapper {
  padding-bottom: 20px;
  margin-right: 21px;
  display: flex;
  flex-direction: column;
  max-width: 303px;
  min-width: 120px;
  width: 100%;
  position: relative;
  .text_input {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 12px;
    border-radius: 10px;
    font-feature-settings: "clig" off, "liga" off;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px; /* 200% */
    &:focus {
      box-shadow: none;
      outline: none;
    }

    &::placeholder {
      color: $greySecondary;
      font-feature-settings: "clig" off, "liga" off;
      font-family: Poppins;
      font-size: 12px;
      font-style: normal;
      font-weight: 300;
      line-height: normal;
    }
  }
  .error_text_input {
    background-color: $rozePrimary;
    border: 1px solid $redPrimary;
    color: $redPrimary;
    > .placeholder {
      color: $redPrimary;
    }
    &:focus {
      border: 1px solid $redPrimary;
    }
  }
  .text_input_title {
    width: 100%;
    color: $blackPrimary;
    font-feature-settings: "clig" off, "liga" off;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; /* 200% */
    margin: 0 0 10px 0;
  }
  .text_input_title_dark {
    width: 100%;
    color: $darkGrey;
    font-feature-settings: "clig" off, "liga" off;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; /* 200% */
    margin: 0 0 10px 0;
  }
  .error_text {
    margin: 0;
    position: absolute;
    color: $redPrimary;
    font-feature-settings: "clig" off, "liga" off;
    font-family: Poppins;
    font-size: 10px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px; /* 280% */
    transform: translateY(calc(100% - 20px));
    z-index: 0;
    bottom: 0;
    left: 0;
  }
  .clean_button {
    position: absolute;
    right: -21px;
    top: 51px;
    cursor: pointer;
    height: 16px;
    width: 16px;
  }
}
