/* Forms */

*[type="submit"] {
  margin-top: 2rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: .8rem;
  margin-top: 2rem;
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-stack);
  font-size: 2.4rem;
  background: transparent;
  color: currentColor;
  border: 0;
  border-bottom: .3rem solid currentColor;
  padding: .8rem 1.6rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 .3rem 1rem rgba(var(--color-primary-rgb), 0.3);
}

/* Buttons */
button, .button {
  display: inline-block;
  font-size: 1em;
  font-family: var(--font-stack);
  font-weight: bold;
  background: var(--color-body);
  border: .3rem solid var(--color-body);
  color: var(--color-bg);
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  padding: .6rem 2.5rem;
  outline: 0;
  line-height: 1.5;
  vertical-align: middle;
}

button:hover, .button:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

button:active, .button:active {
  transform: translateY(2px);
}

button:disabled, .button.disabled {
  opacity: .5;
  cursor: not-allowed;
}

button.button-outline, .button.button-outline {
  background-color: transparent;
  color: var(--color-body);
}
button.button-outline:hover, .button.button-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
}


/* Header buttons */
header button, header .button {
  border-color: transparent;
  background: transparent;
  color: var(--color-body);
}

.bg-glow header button, .bg-glow header .button {
  color: light-dark(var(--color-bg), var(--color-body));
}

header button:hover, header .button:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg);
}

.bg-glow header button:hover, .bg-glow header .button:hover {
  border-color: var(--color-bg);
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Form container */
.form-container {
  max-width: 60rem;
  margin: 4rem auto;
}

.form-help {
  font-size: 1.6rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.form-footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 2rem;
}

/* Checkbox and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  accent-color: var(--color-primary);
}
