@media (prefers-color-scheme: light) {
  :root {
    --error: #dc3545;
    --success: #198754;
    --primary: #7952b3;
    --secondary: #61428f;
    --button-text: #fff;
    --button-focus: 0 0 0 3px rgb(121, 82, 179, 0.25);
    /* link color */
    --link-color: #7952b3;
    /* text */
    --text-main: #363636;
    --text-bright: #000;
    /* background */
    --background-body: #f9fafb;
    --main-bg: #fff;
    --main-border: transparent;

    /* input */
    --input-text-color: #000;
    --input-placeholder-color: #c2c2c2;
    --input-border-color: #ccc;
    --input-background-color: #fff;
    --input-disabled: #f5f5f5;
    --input-focus: 0 0 0 3px rgb(121, 82, 179, 0.25);
    --box-shadow: rgb(50 50 93 / 25%) 0px 2px 5px -1px,
      rgb(0 0 0 / 30%) 0px 1px 3px -1px;
  }
}


/* show a label on the form */
label {
  display: inline-block;
  margin-bottom: 5px;
  vertical-align: top;
  width: 100%;
}

/* input, textarea */
input,
textarea,
select {
  background-color: var(--input-background-color);
  color: var(--input-text-color);
  border: 1px solid var(--input-border-color);
  border-radius: 3px;
  display: inline-block;
  padding: 0rem 0rem;

  font-family: inherit;
  font-size: 1rem;
}

input::placeholder {
  color: var(--input-placeholder-color);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: var(--input-focus);
}

input[disabled],
textarea[disabled] {
  background-color: var(--input-disabled);
  border: solid 1px var(--input-border-color);
  box-shadow: none;
  color: #7a7a7a;
  cursor: not-allowed;
}

/* input error & success */
input.error,
textarea.error,
select.error {
  border-color: var(--error);
}

input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 0.25rem rgb(220 53 69 / 25%);
}

input.success,
textarea.success,
select.success {
  border-color: var(--success);
}

input.success:focus,
textarea.success:focus {
  box-shadow: 0 0 0 0.25rem rgb(25 135 84 / 25%);
}

/* buttons DO NOT USE input with type submit or button */
button {
  background: var(--primary);
  color: var(--button-text);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--primary);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  text-align: center;
  padding: 0.375rem 0.75rem;
}

button:hover {
  background: var(--secondary);
  border-color: var(--border-color);
  cursor: pointer;
}

button:focus {
  outline: none;
  color: var(--button-text);
  background-color: var(--secondary);
  border-color: var(--border-color);
  box-shadow: var(--button-focus);
}

form > button {
  display: block;
  width: 100%;
}

/* labels for radio  & checkbox*/
form > div > div > label {
  width: auto;
  cursor: pointer;
  display: inline-block;
  position: relative;
  border-radius: 5px;
}

/* 
	Place multiple checkbox or radibo button inside a label and wrap
 	them with a <p> tag to make them stacked 
*/
form > div > p > label {
  display: block;
  margin-left: auto;
  margin-bottom: 0.75rem;
}

/* 
	Add margin to the checkbox or radio button 
	if they're placed next to each other
*/
label + label {
  margin-left: 1rem;
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: baseline;
  width: auto;
}

/* alerts */
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}
.alert-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}
.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Utility classes*/
.half {
  width: 50%;
}
.quarter {
  width: 25%;
}

.full {
  width: 100%;
}

.error {
  color: var(--error);
}