:root {
  --lighter-gray: rgba(0, 0, 0, 0.24);
  --light-gray: rgba(0, 0, 0, 0.38);
  --gray: rgba(0, 0, 0, 0.54);
  --dark-gray: rgba(0, 0, 0, 0.87);

  --input-background-color: #f6f6f6;
}

html, body {
  overflow: hidden;
  -ms-touch-action: none;
  touch-action: none;
  position: fixed;
  width: 100%;
  min-height: 100%;
}
* {
  box-sizing: border-box;
}
body {
  color: var(--dark-gray);
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  margin: 0;
  display: flex;
  height: 100%;
  background-color: var(--body-background-color);
}

.registration-page {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
}
.dark-mode .registration-page-header {
  color: white;
}
.registration-page-header {
  height: 48px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px 0 32px;
  text-align: center;
  font-size: 24px;
  line-height: 32px;
  font-weight: normal;
}
.registration-page-footer {
  height: 32px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
}

.sparkup-link {
  color: var(--lighter-gray);
  text-decoration: none;
}
.sparkup-link:hover {
  color: var(--dark-gray);
}
.dark-mode .sparkup-link {
  color: rgba(255, 255, 255, 0.36);
}
.dark-mode .sparkup-link:hover {
  color: white;
}
.sparkup-logo {
  aspect-ratio: 10/3;
  display: inline-block;
  height: 1.45em;
  margin: -0.35em 0;
  background-color: currentColor;
}

.registration-page-content {
  padding: 16px 24px;
  margin: auto 0;
}
.registration-page-content-image {
  aspect-ratio: 16/10;
  border-radius: 16px;
  width: calc(100% - 356px);
  max-width: calc(1280px - 356px - 48px);
  transform: translateX(-178px);
  background-color: #ffffff;
  background-image: var(--registration_banner_url);
  background-size: cover;
  background-position: center;
  position: relative;
  max-height: calc(100vh - 112px); /* header height + footer height + padding */
  margin: 0 auto;
  position: relative;
}
.registration-page-content-aside {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -356px;
  width: 340px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.registration-page-content-aside-description {
  flex: 1 0 0;
  padding: 24px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(0deg, transparent, black 24px);
  display: flex;
  flex-direction: column;
}
.registration-page-content-aside-logo {
  height: 36px;
  margin: 0 auto 24px;
}
.registration-page-content-aside-title {
  font-size: 20px;
  font-weight: normal;
  margin: 0 0 6px 0;
}
.registration-page-content-aside-date {
  font-size: 13px;
  line-height: 18px;
  color: var(--gray);
  margin: 0;
}
.registration-page-content-aside-date img {
  height: 18px;
  vertical-align: bottom;
}
.registration-page-content-aside-text {
  margin: 2em 0;
}
.registration-page-content-aside footer {
  display: flex;
}
.registration-page-content-aside button {
  margin: 16px auto;
}
@media (max-width: 840px) {
  .registration-page {
    overflow-y: auto;
    position: relative;
    margin-bottom: 48px;
  }
  .registration-page-header {
    display: none;
  }
  .registration-page-content {
    margin: 0;
    padding: 0;
  }
  .registration-page-content-image {
    width: 100%;
    transform: none;
    border-radius: 0;
  }
  .registration-page-content-aside {
    top: 62.5vw;
    margin-top: 16px;
    bottom: unset;
    right: 12px;
    width: calc(100% - 24px);
    min-height: calc(100vh - 62.5vw - 48px);
    padding-bottom: 72px;
  }
  .registration-page-content-aside-description {
    overflow: visible;
  }
  .registration-page-content-aside-title {
    font-size: 21px;
  }
  .registration-page-content-aside footer {
    position: fixed;
    bottom: 24px;
    bottom: 32px;
    width: calc(100% - 24px);
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
  }
  .registration-page-footer {
    position: fixed;
    bottom: 0;
    height: 24px;
  }
}


/*/////////////////////////////////////////////*/
.registration-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(33, 33, 33, 0.48);
  padding: 16px;
  display: none;
}
.registration-overlay.visible {
  display: flex;
}
.registration-container {
  width: 100%;
  padding: 8px 24px 24px 24px;
  background-color: #ffffff;
  max-height: 100%;
  overflow-y: auto;
}
.registration-overlay .registration-container {
  width: 328px;
  margin: auto;
  border-radius: 16px;
  box-shadow: 0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12);
}
@media (max-width: 400px) {
  .registration-overlay {
    padding: 0;
  }
  .registration-overlay .registration-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}
.registration-closeBtn {
  display: block;
  font-size: 24px;
  margin: 8px -6px 0 auto;
  line-height: 19px;
  padding-bottom: 5px;
  width: 24px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--light-gray);
  text-decoration: none;
}
.registration-closeBtn:hover {
  color: var(--dark-gray);
  background-color: var(--lighter-gray);
}
.registration-title {
  font-size: 21px;
  font-weight: normal;
  margin: 0;
  text-align: center;
}
.registration-subtitle {
  margin: 4px 0 32px;
  text-align: center;
  color: var(--gray);
}
.registration-message {
  min-height: 280px;
  margin: 16px 0;
  padding-bottom: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.registration-message h1 {
  font-size: 48px;
  margin: 16px 0 0;
  color: var(--gray);
}
.registration-message p {
  text-align: center;
}
label,
.text-danger {
  display: inline-block;
  font-size: 12px;
  line-height: 14px;
  color: var(--gray);
  margin-bottom: 6px;
}
label {
  padding-left: 3px;
}
form {
  margin: 16px 0;
  min-height: 280px;
}
.form-group {
  margin-bottom: 16px;
  position: relative;
}
.form-group + button {
  margin-top: 22px;
}
input:not([type="checkbox"]) {
  appearance: none;
  outline: none;
  border: 1px solid var(--lighter-gray);
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
  background-color: var(--input-background-color);
  color: #000000;
  font-size: 16px;
  line-height: 26px;
  height: 40px;
  width: 100%;
  padding: 6px 8px;
}
input:not([type="checkbox"]).input_required_displayed:invalid {
  border-color: red;
}
input:not([type="checkbox"]):active,
input:not([type="checkbox"]):focus {
  border-color: var(--theme_primary_color);
}
.input_required_error {
  display: none;
  font-size: 12px;
  color: red;
  text-align: center;
  position: absolute;
  bottom: -18px;
  left: 3px;
  right: 3px;
}

.input_required_displayed:invalid ~ .input_required_error {
  display: block;
}

.registration-checkbox-label {
  width: 100%;
  position: relative;
}
input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  margin: -5px 3px -8px -3px;
  fill: var(--light-gray);
  cursor: pointer;
}
.input_required_displayed:invalid ~ .checkmark {
  fill: red;
}
.checkedmark {
  fill: none;
}
input[type="checkbox"]:checked ~ .checkmark .checkedmark {
  fill: var(--theme_primary_color);
}
.label-link {
  font-weight: normal;
  color: var(--gray) !important;
}
button {
  appearance: none;
  border: none;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  margin: 24px auto 6px auto;
  padding: 0 16px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.01em;
  height: 40px;
  line-height: 40px;
  min-width: 120px;
  border-radius: 20px;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  background-color: var(--theme_secondary_color);
}
button:hover {
  filter: brightness(1.1);
}
button[disabled] {
  background: none;
  box-shadow: none;
  color: var(--gray);
  cursor: default;
}
.registration-footer {
  height: 16px;
  width: 100%;
  max-width: 1280px;
  margin: 24px auto 0 auto;
  text-align: center;
  font-size: 12px;
}
