/* app/assets/stylesheets/components/floating_label_input.css */

.floating-input-container {
  position: relative;
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background-color: white;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B7280;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
  z-index: 1;
}

.floating-label-active {
  top: -0.5rem;
  font-size: 0.75rem;
  color: #10B981;
}

.floating-label-error {
  color: #EF4444;
}

.floating-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  background-color: white;
}

.floating-input-error {
  border-color: #EF4444;
}

.floating-input:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgb(16 185 129 / 10%);
}

.floating-input:focus + .floating-label {
  color: #10B981;
}
