:root {
  --primary-color: #e31f21;
  --primary-hover-color: #c02224;

  --bg-component: #fff;
  --bg-header: #fff;

  --clr-white: #fff;
  --clr-black: #000000;

  --clr-grey-super-light: #f6f6f6;
  --clr-grey-light: #d3d3d3;
  --clr-grey-mid-light: #8f8f8f;
  --clr-grey-mid: #696969;
  --clr-grey-dark: #444;
  --clr-grey-super-dark: #222;

  --clr-error: #ff0000;

  --border-radius-button: 0.5rem;
  --border-radius-component: 1rem;

  --border-light: 1px solid var(--clr-grey-light);
  --border-medium: 1px solid var(--clr-grey-mid);
  --border-red: 1px solid var(--primary-color);
}

body {
  font-family: sans-serif;
  color: var(--clr-grey-dark) !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

.alert {
  border-radius: var(--border-radius-button) !important;
}

.password-rules {
  padding-left: 4px;
  list-style-type: none;
  font-size: 13px;
}

.password-rules.update {
  margin-top: 0.5rem;
}

.password-rules [data-rule]::before {
  content: "✕ ";
  color: red;
}

.password-rules [data-rule].valid::before {
  content: "✓ ";
  color: green;
}

#input-error-password-confirm {
  display: block;
  margin-top: 0.5rem;
  padding-left: 1rem;

  font-size: 13px;
  font-weight: 600;
  color: red;
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--clr-grey-mid);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--clr-black);
  background-color: rgba(0, 0, 0, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.password-toggle[aria-pressed="true"] {
  color: var(--clr-black);
  background-color: rgba(0, 0, 0, 0.12);
}

.form-control {
  font-size: 14px;
}
