.arm-field {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 0.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.arm-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: inherit;
}

.arm-input,
.arm-password-wrapper input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  border: none;
  background-color: transparent;
  font-size: inherit;
  color: inherit;
  box-sizing: border-box;
}

.arm-input:focus,
.arm-password-wrapper input[type="password"]:focus {
  outline: none;
}

.arm-password-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: inherit;
  border: none;
  padding: 0;
}

.arm-toggle-eye {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.arm-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.arm-help {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.arm-error {
  font-size: 0.85rem;
  color: #c00;
  margin-top: 0.25rem;
}

/* Autofill cleanup for Chrome */
input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Hover border effect for input wrapper */
.arm-field:hover {
  box-shadow: 0 0 0 2px currentColor;
}

/* Make textarea visibly larger to cue more content */
.arm-input[type="textarea"],
.arm-field textarea.arm-input {
  min-height: 6rem;
  resize: vertical;
}
