.text-input-container {
  max-width: 500px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.text-input-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.text-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
}

#text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 36px 8px 12px;
  color: #fafbfc;
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#text-input::placeholder {
  color: #6e7681;
}

#text-input:focus {
  outline: none;
  border-color: #39d353;
}

.text-clear-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 0 6px;
  border: none;
  border-radius: 5px;
  background: none;
  color: #fafbfc;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.text-clear-btn:hover,
.text-clear-btn:focus-visible {
  color: #39d353;
}

.text-hint {
  min-height: 1.2em;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #8b949e;
}

.text-hint.full {
  color: #e3b341;
}

.text-input-wrapper.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
