:host {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

:host(.hidden) {
  display: none;
}

:host,
input,
button,
select,
textarea {
  font-family: 'Roboto', sans-serif;
}

.zea-input {
  color: var(--color-foreground-1);
}

.input-label {
  color: var(--color-foreground-3);
  position: relative;
  transition: all 0.2s linear;
  pointer-events: none;
}

.empty .input-label {
  top: 18px;
  font-size: 13px;
}

.not-empty .input-label,
.focused .input-label {
  top: 0;
  font-size: 11px;
}

.focused .input-label {
  color: var(--color-secondary-1);
}

.input-wrap {
  display: block;
  position: relative;
}

input[type='text'] {
  box-sizing: border-box;
  width: 100%;
  color: var(--color-foreground-1);
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  font-size: 13px;
}

.invalid-message {
  color: var(--color-warning-1);
  padding: 0.3em 0;
  font-size: 12px;
}

.underliner {
  text-align: center;
  height: 1px;
  background-color: var(--color-grey-3);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.underliner .expander {
  height: 1px;
  background-color: var(--color-secondary-1);
  overflow: hidden;
  display: inline-block;
  width: 0;
  transition: width 0.2s linear;
}
.focused .underliner .expander {
  width: 100%;
}

.invalid .underliner .expander {
  background-color: var(--color-warning-1);
  width: 100%;
}

.disabled .underliner {
  background-color: transparent;
  border-bottom: 1px dotted var(--color-grey-3);
}

.hidden {
  display: none;
}
