:root {
  --primary: #008bc7;
  --primary_text: #ffffff;
  --primary_color_text: #008bc7;
  --accent: #5c1280;
  --accent_text: #ffffff;
  --accent_color_text: #5c1280;
  --error: #ff5722;
  --error_text: #ffffff;
  --error_color_text: #ff5722;
}

h1 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: inherit;
  font-size: inherit;
  font-weight: bold;
  letter-spacing: -0.05em;
}

h2,
h3,
h4,
h5,
h6,
p,
a,
label,
li,
button,
input {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #666666;
  font-weight: inherit;
}

body {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.is-invalid {
  border-color: rgba(213, 0, 0, 0.51);
}

#app {
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: auto 70px;
  grid-template-areas: 'main' 'footer';
}

#app main {
  grid-area: main;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, rgba(244, 246, 246, 1), rgba(214, 234, 248, 0.5));
}

#app footer {
  grid-area: footer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #edf5fb;
  text-align: center;
  line-height: 1.5;
}

#app footer h3 {
  padding: 0 15px;
}

a {
  text-decoration: none;
}

#app footer a {
  color: var(--accent_color_text);
}

.center-box {
  width: 360px;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.19),
    0 6px 6px rgba(0, 0, 0, 0.23);
  padding: 1em 1em 2em 1em;
  max-width: 360px;
  margin: 15px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  display: grid;
  grid-template-rows: 5em auto;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.center-box a {
  text-decoration: none;
}

.center-box input[type='password'],
.center-box input[type='email'],
.center-box input[type='text'] {
  width: 100%;
  height: 40px;
  border-radius: 5px;
  border: 2px solid #ddd;
  padding: 5px 6px;
  box-sizing: border-box;
  margin: 5px 0 15px;
  font-size: 1rem;
}

.center-box input[type='password'] {
  font: small-caption;
  font-size: 1.2rem;
}

.center-box input[type='password']:hover,
.center-box input[type='email']:hover,
.center-box input[type='text']:hover {
  border-color: var(--primary);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.center-box input[type='password']:valid,
.center-box input[type='email']:valid,
.center-box input[type='text']:valid {
  border-color: var(--primary);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.center-box input[type='password']:invalid,
.center-box input[type='email']:invalid,
.center-box input[type='text']:invalid {
  border-color: var(--error);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.center-box input[type='checkbox'] {
  cursor: pointer;
  position: absolute;
  opacity: 0;
}

.center-box label {
  display: flex;
  height: auto;
}

.button-group {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.button-group .link {
  cursor: pointer;
  color: var(--accent_color_text);
}

.button-group .link:hover {
  transition: color 0.3s;
}

.button-group a {
  margin: 0;
  width: auto;
  height: 36px;
  line-height: 36px;
  padding: 4px 16px;
  border-radius: 2px;
  transition: color 0.3s;
}

.button-group a:hover {
  text-decoration: underline;
  transition: color 0.3s;
}

.button-group button {
  box-sizing: border-box;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  outline: 0;
  border: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: baseline;
  text-align: center;
  margin: 0;
  min-width: 100px;
  line-height: 36px;
  padding: 4px 16px;
  border-radius: 2px;
  overflow: visible;
  transform: translate3d(0, 0, 0);
  transition:
    background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--accent_text);
  background-color: var(--accent);
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  font-size: 1em;
}

.button-group button:hover {
  opacity: 0.9;
  transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
}

.form-full-width {
  min-width: 150px;
  max-width: 500px;
  width: 100%;
}

.input-full-width {
  width: 800px;
}

.center-box .heading {
  grid-row: 1/2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 5em;
  color: #666666;
}

.center-box .body {
  grid-row: 2/3;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .center-box {
    border: none;
    max-width: 100%;
  }
}

@media screen and (max-width: 420px) {
  .center-box {
    border: none;
    width: auto;
  }

  .center-box .heading {
    font-size: 3.2em;
  }
}

/*checkbox rules*/
.checkbox-container {
  margin-top: 15px;
}

.checkbox-container .checkbox-label {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.6;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkbox-container .checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-container .checkmark {
  position: absolute;
  top: 3px;
  left: 0;
  border-radius: 3px;
  height: 18px;
  width: 18px;
  border: 2px solid var(--accent);
}

.checkbox-container .checkbox-label:hover input ~ .checkmark {
}

.checkbox-container .checkbox-label input:checked ~ .checkmark {
  background-color: var(--accent);
}

.checkbox-container .checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.checkbox-container .checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkbox-label .checkmark:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--accent_text);
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.invalid-feedback,
.valid-feedback {
  margin: 10px 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.invalid-feedback {
  background-color: var(--error);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.invalid-feedback strong {
  color: #ffffff;
  font-weight: bolder;
}

.valid-feedback {
  background-color: var(--primary);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.valid-feedback strong {
  color: #ffffff;
  font-weight: bolder;
}

#qr-container > svg {
  width: 100% !important;
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}
