@import url(fonts-local.css);

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #fff;
  font: 14px "Roboto", sans-serif;
  background: #252a2d;
  overflow-x: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .85), transparent 75%);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  right: 16px;
  bottom: 0;
  width: min(700px, 46vw);
  height: min(520px, 58vh);
  background: var(--kx-header-image-url, url("/cdn/img/header.png")) right bottom / contain no-repeat;
  opacity: .74;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .46));
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--kx-primary-color, #ff9b00);
  text-decoration: none;
}

a:hover {
  color: var(--kx-primary-color-light, color-mix(in srgb, var(--kx-primary-color, #ff9b00) 72%, #fff));
}

.register-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
}

.register-card {
  position: relative;
  width: 100%;
  max-width: 850px;
  min-width: 0;
  display: block;
  padding: 0 !important;
  overflow: hidden;
  border: 10px solid #151819;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #202526 0%, #191d1e 55%, #151819 100%),
    #191d1e;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
}

#contentBox.register-card {
  margin: 0;
  padding: 0 !important;
  border-radius: 2px;
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .075), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #202526 0%, #191d1e 55%, #151819 100%),
    #191d1e;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.register-card::before {
  content: none;
}

.register-form-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 26px;
  align-items: center;
  padding: 30px 36px 30px;
}

.register-logo {
  display: block;
  width: 178px;
  height: 64px;
  margin: 0;
  background: var(--kx-site-logo-url, url("/cdn/img/kabbixlogo_big_beta.png")) left center / contain no-repeat;
  image-rendering: pixelated;
}

.register-heading {
  margin: 0;
  padding: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.register-heading h1 {
  margin: 0 0 6px;
  color: #fff;
  font: 700 31px/1 "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  text-align: right;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .65);
}

.register-heading p {
  margin: 0 0 0 auto;
  max-width: 520px;
  color: rgba(255, 255, 255, .64);
  line-height: 1.45;
  text-align: right;
}

#registrationForm {
  display: block;
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 0;
}

.register-form-grid {
  display: grid;
  grid-template-areas:
    "username password"
    "email repeat"
    "notices gender"
    "notices submit";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 9px;
  align-items: start;
}

.register-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.register-field-username {
  grid-area: username;
}

.register-field-password {
  grid-area: password;
}

.register-field-email {
  grid-area: email;
}

.register-field-password-repeat {
  grid-area: repeat;
}

.register-field-notices {
  grid-area: notices;
  align-self: stretch;
}

.register-field-gender {
  grid-area: gender;
  margin-top: -23px;
}

.register-field-submit {
  grid-area: submit;
  align-self: end;
}

#registrationForm label {
  color: rgba(255, 255, 255, .88);
  font: 700 13px "Roboto", sans-serif;
}

#registrationForm input[type="text"],
#registrationForm input[type="email"],
#registrationForm input[type="password"] {
  width: 100%;
  min-height: 36px;
  padding: 8px;
  color: #111;
  border: none;
  border-radius: 2px;
  outline: none;
  background: #fff;
  box-shadow: none;
  font: 500 14px "Roboto", sans-serif;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

#registrationForm input[type="text"]:hover,
#registrationForm input[type="email"]:hover,
#registrationForm input[type="password"]:hover {
  background: #fff;
}

#registrationForm input:focus {
  box-shadow: inset 0 0 0 2px var(--kx-primary-color, #ff9b00);
  background: #fff;
}

.details {
  margin: -1px 0 2px;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  line-height: 1.35;
}

.register-warning-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  background: #191d1e;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.42;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.register-terms-note {
  margin-top: 8px;
}

.register-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--kx-primary-color, #ff9b00);
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .65));
}

.register-warning-note a {
  color: var(--kx-primary-color, #ff9b00);
  font-weight: 700;
}

.register-warning-note a:hover {
  color: var(--kx-primary-color-light, color-mix(in srgb, var(--kx-primary-color, #ff9b00) 72%, #fff));
}

.register-availability {
  min-height: 18px;
  margin: -1px 0 0;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  line-height: 1.35;
}

.register-field-username .register-availability {
  min-height: 58px;
}

.register-field-email .register-availability {
  min-height: 18px;
}

.register-availability.is-ok,
#reg-password-status.is-ok {
  color: #64d99a;
}

.register-availability.is-error,
#reg-password-status.is-error {
  color: #ff8f8f;
}

.register-availability.is-loading {
  color: rgba(255, 255, 255, .58);
}

.register-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.register-suggestion {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--kx-primary-color, #ff9b00);
  border-radius: 2px;
  color: #fff;
  background: var(--kx-primary-color-faint, rgba(255, 155, 0, .13));
  font: 700 11px "Roboto", sans-serif;
  cursor: pointer;
}

.register-suggestion:hover {
  background: var(--kx-primary-color-soft, rgba(255, 155, 0, .25));
}

.gender-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gender-selection input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 2px;
  background: #191d1e;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gender-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .22);
}

.gender-option img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  image-rendering: pixelated;
}

.gender-option span {
  font: 700 13px "Roboto", sans-serif;
}

.gender-selection input[type="radio"]:checked + .gender-option {
  border-color: var(--kx-primary-color, #ff9b00);
  background: #211d13;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--kx-primary-color, #ff9b00) 30%, transparent);
}

.register-turnstile {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.registerButton,
.cancelButton {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 2px;
  font: 700 14px "Roboto", sans-serif;
  cursor: pointer;
  text-transform: uppercase;
}

.registerButton {
  color: #fff;
  background: #27ae60;
  box-shadow: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.registerButton:hover {
  background: #2ecc71;
  box-shadow: none;
  transform: none;
}

.registerButton:active {
  transform: translateY(0);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, .25);
}

.cancelButton {
  min-height: 36px;
  color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .045);
}
