.text-field {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18.5px 16px 17.5px;
  background-color: var(--background-1);
  border: 1px rgba(223, 223, 223, 1) solid;
  border-radius: var(--border-radius);
  transition: all 0.2s linear;
  height: 55px;
  position: relative;
  width: 100%;
  appearance: textfield;
  -webkit-appearance: textfield;

  &:focus-within {
    border-color: var(--color-primary);
  }

  /*&:disabled {*/
  /*  border-color: var(--color-gray-2);*/

  /*  &::placeholder {*/
  /*    color: var(--color-gray-2);*/
  /*  }*/

  /*  svg {*/
  /*    fill: var(--color-gray-2);*/
  /*  }*/
  /*}*/

  input {
    border: none;
    background: none;
    outline: none;
    color: inherit;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
    width: 100%;

    &::placeholder {
      color: var(--color-gray-1);
      transition: inherit;
    }
  }

  .text-field__prefix {
    transition: inherit;
  }

  &.password {
    &:has(input[type='password']) .text-field__suffix {
      background-image: url('shared/assets/eye-on.svg');
    }

    &:has(input[type='text']) .text-field__suffix {
      background-image: url('shared/assets/eye-off.svg');
    }

    .text-field__suffix {
      border: none;
      background-color: transparent;
      outline: none;
      background-repeat: no-repeat;
      background-position: center;
    }
  }

  .text-field__suffix {
    flex-shrink: 0;
    transition: inherit;
    width: 24px;
    height: 24px;
  }

  &.invalid {
    .text-field__error {
      opacity: 1;
    }
  }

  .text-field__error {
    position: absolute;
    color: var(--color-primary);
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 0;
    opacity: 0;
  }
}

.checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-gray-2);
  cursor: pointer;
  transition: all 0.2s linear;
  background-repeat: no-repeat;
  background-position: center center;

  &:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url('./assets/checbox-check.svg');
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  padding: 20px 0;
  height: 56px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s linear;
  outline: none;

  &.small-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    padding: 14px 16px;
    height: 42px;
  }

  &.secondary {
    background: var(--color-pink);
    color: var(--color-primary);
  }

  &.outlined {
    background: white;
    border: 1px solid var(--foreground-primary);
    color: var(--foreground-primary);
  }

  &:hover {
    background: #f91e46;

    &.secondary {
      background: var(--color-primary);
      color: white;
    }

    &.outlined {
      background: var(--color-primary);
      color: white;
      border: 1px solid var(--color-primary);
    }
  }

  &:disabled {
    background: var(--color-gray-3);
    color: var(--foreground-primary);
  }
}

.divider {
  height: 1px;
  width: 100%;
  background-color: var(--color-gray-2);
}
