@import "./theme.css";

.react-aria-Form {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}

.react-aria-Form [role=alert] {
  border: 2px solid var(--invalid-color);
  background: var(--overlay-background);
  border-radius: 6px;
  padding: 12px;
  max-width: 250px;
  outline: none;

  &:focus-visible {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
  }

  h3 {
    margin-top: 0;
  }

  p {
    margin-bottom: 0;
  }
}

.react-aria-Label {
  color: var(--text-color);
  margin-bottom: 0.5em;
  font-size: 16px;
}

.react-aria-FieldError {
  font-size: 12px;
  color: var(--invalid-color);
}

.field-Button {
  background: var(--highlight-background);
  color: var(--highlight-foreground);
  border: 2px solid var(--field-background);
  forced-color-adjust: none;
  border-radius: 4px;
  border: none;
  margin-left: -1.687875rem;
  width: 1.250375rem;
  height: 1.250375rem;
  padding: 0;
  font-size: 0.749875rem;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: center;

  &[data-pressed] {
    box-shadow: none;
    background: var(--highlight-background);
  }

  &[data-focus-visible] {
    outline: 2px solid var(--focus-ring-color);
    outline-offset: 2px;
  }
}