:root {
  --y-input-color: var(--y-shadow-color);
  --y-input-label-color: var(--y-input-color);
  --y-input-border-radius: var(--y-radius);
  --y-input-focus-label-color: var(--y-primary-color);
  --y-input-bar-color: var(--y-primary-color);
}

.y-input {
  display: inline-block;
  position: relative;
  width: 200px;
}
.y-input .y-input-field {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 20px;
  border: var(--y-border);
  border-radius: var(--y-input-border-radius);
  transition: all 0.3s ease;
}
.y-input .y-input-field:focus {
  outline: none;
}
.y-input .y-input-field:focus:not(.y-input-labeled-field) {
  box-shadow: var(--y-focus-shadow);
}
.y-input .y-input-field.y-input-disabled-field {
  opacity: var(--y-disabled-opacity);
  cursor: not-allowed;
}
.y-input .y-input-field::placeholder {
  color: var(--y-placeholder-color);
}
.y-input .y-input-labeled-field {
  padding-top: 20px;
  border: none;
  border-bottom: var(--y-border);
  border-radius: 0;
}
.y-input .y-input-labeled-field:focus ~ .y-input-label, .y-input .y-input-labeled-field:valid ~ .y-input-label {
  top: 0;
  font-size: 12px;
}
.y-input .y-input-labeled-field:focus ~ .y-input-label {
  color: var(--y-input-focus-label-color);
}
.y-input .y-input-labeled-field:focus ~ .y-input-bar::before {
  left: 0;
}
.y-input .y-input-labeled-field:focus ~ .y-input-bar::after {
  right: 0;
}
.y-input .y-input-labeled-field ~ .y-input-clear-icon {
  top: 63%;
}
.y-input .y-input-label {
  position: absolute;
  pointer-events: none;
  font-size: 14px;
  color: var(--y-input-label-color);
  top: 20px;
  left: 8px;
  transition: all 0.3s ease;
}
.y-input .y-input-clearable-field {
  padding-right: 28px;
}
.y-input .y-input-clear-icon {
  position: absolute;
  font-size: 14px;
  color: var(--y-shadow-color);
  transform: translate(0%, -50%);
  top: 50%;
  right: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.y-input .y-input-clear-icon:hover {
  color: var(--y-primary-color);
}
.y-input .y-input-bar {
  position: relative;
  display: block;
  width: 100%;
}
.y-input .y-input-bar::after, .y-input .y-input-bar::before {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  background-color: var(--y-input-bar-color);
  transition: all 0.3s ease;
}
.y-input .y-input-bar::after {
  left: 50%;
  right: 50%;
}
.y-input .y-input-bar::before {
  right: 50%;
  left: 50%;
}
.y-input.y-input-large .y-input-field {
  padding: 8px 10px;
  font-size: 16px;
  line-height: 24px;
}
.y-input.y-input-large .y-input-clearable-field {
  padding-right: 30px;
}
.y-input.y-input-large .y-input-labeled-field {
  padding-top: 24px;
}
.y-input.y-input-large .y-input-labeled-field:focus ~ .y-input-label, .y-input.y-input-large .y-input-labeled-field:valid ~ .y-input-label {
  font-size: 14px;
}
.y-input.y-input-large .y-input-labeled-field ~ .y-input-clear-icon {
  top: 63%;
}
.y-input.y-input-large .y-input-label {
  font-size: 16px;
  left: 10px;
  top: 26px;
}
.y-input.y-input-large .y-input-clear-icon {
  right: 8px;
  font-size: 16px;
}
.y-input.y-input-small .y-input-field {
  padding: 4px 6px;
  font-size: 12px;
  line-height: 18px;
}
.y-input.y-input-small .y-input-clearable-field {
  padding-right: 22px;
}
.y-input.y-input-small .y-input-labeled-field {
  padding-top: 16px;
}
.y-input.y-input-small .y-input-labeled-field:focus ~ .y-input-label, .y-input.y-input-small .y-input-labeled-field:valid ~ .y-input-label {
  top: 0;
  font-size: 10px;
}
.y-input.y-input-small .y-input-labeled-field ~ .y-input-clear-icon {
  top: 63%;
}
.y-input.y-input-small .y-input-label {
  font-size: 12px;
  left: 6px;
  top: 16px;
}
.y-input.y-input-small .y-input-clear-icon {
  right: 6px;
  font-size: 12px;
}