/* Common */

html {
  padding: 0;
  margin: 0;
  font-weight: 400;
  font-size: 14px;
}

:root {
  --theme-primary: #0075e2;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f6f7f8;
  min-height: calc(100vh - 136px);
  position: relative;
  padding-bottom: 136px;
}

#captcha {
  display: flex;
  justify-content: center;
}

@media (max-width: 600px), (max-height: 600px) {
  body {
    background-size: 300px;
  }
}

* {
  font-family: Inter, Arial, Helvetica, sans-serif;
}

header {
  background-color: #06223b;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px;
}

header > img {
  height: 40px;
}

a {
  text-decoration: none;
  color: var(--theme-primary);
}

.linkButton {
  text-decoration: none;
  color: var(--theme-primary);
  font-weight: 600;
  font-size: 12px;
}

.linkButton:hover {
  cursor: pointer;
}

h1 {
  font-size: 36px !important;
  font-weight: 400 !important;
  color: var(--theme-primary);
}

h2 {
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  margin: 0;
  color: #212533;
}

h3 {
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 32px !important;
  color: #212533;
}

.text-base {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #212533;
}

.subheader {
  min-height: 56px;
  display: flex;
  align-items: center;
}

.subheader a {
  margin-left: 4px;
}

#content {
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

form {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

p {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  margin: 30px 0;
}

button {
  cursor: pointer;
}

/* v2 */

.form-field {
  width: 100%;
  margin-bottom: 24px;
}

input {
  height: 48px;
  width: 100%;
  border: solid 1px gray;
  border-radius: 4px;
  padding: 0 16px;
  box-sizing: border-box;
}

.form-field > input, .form-field > select {
  background-color: #fcfcff;
  margin-bottom: 6px;
}

.form-field > input:disabled, .form-field > select:disabled {
  background: #fbfcfd;
  border: 1px solid #e9ebec;
}

.form-field.has-error input, .form-field.has-error select {
  border: solid 1px #CF3228;
}

.form-field--error, .form-field--helper-text {
  word-break: break-all;
  display: block;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}
.form-field--error {
  color: #CF3228;
}

.form-field--helper-text {
  color: #626576;
}

.form-field--helper-text button {
  background: none;
  border: none;
}

.form-field--helper-text button svg {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin: 8px 0 24px 0;
  position: relative;
  width: 100%;
}

.form-field--label {
  color: #212533 !important;
  display: flex;
  margin-bottom: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 16px;
}

@media (max-width: 550px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: white;
  padding: 32px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.08), 0px 0px 1px rgba(0, 0, 0, 0.31);
  box-sizing: border-box;
  min-width: 480px;
  max-width: 480px;
}

@media (max-width: 550px) {
  .card {
    min-width: auto;
  }
}

.selectable-card {
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.31), 0px 1px 1px 0px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 480px;
  max-width: 480px;
}

.selectable-card:hover {
  cursor: pointer;
  box-shadow: rgb(0, 131, 255) 0px 0px 0px 1px;
}

.selectable-card > div {
  display: flex;
  align-items: center;
}

.selectable-card img {
  width: 50px;
  height: 50px;
  margin-right: 32px;
}

.selectable-card span {
  color: #212533;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

.break-word {
  word-break: break-word;
}

.button-icon {
  margin-right: 10px;
  width: 16px;
}

#privacy-infobox {
  font-size: 12px;
  color: #626576;
  line-height: 24px;
  text-align: center;
  margin-top: 24px;
  word-break: break-all;
  margin-bottom: 16px;
}

#privacy-infobox.zone-infobox {
  text-align: left;
  margin-bottom: 32px;
}

.flag-img {
  width: 32px;
  height: 22px;
  margin-right: 8px;
}

.flag-dropdown .flag-img {
  width: 24px;
  height: 16px;
  margin-right: 8px;
}

footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 12px;
  justify-content: center;
  color: #626576;
  margin: 80px 0 32px 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  line-height: 24px;
}

footer > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  margin: 0 auto;
}

footer a {
  color: unset;
  margin-left: 24px;
}

@media (max-width: 650px) {
  footer > div {
    flex-wrap: wrap;
  }

  footer > div > div {
    width: 100%;
  }

  footer a {
    margin-left: 0;
    margin-right: 8px;
  }
}


.grid {
  display: grid;
  grid-template-columns: 480px 480px;
  grid-column-gap: 64px;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: 480px;
    grid-row-gap: 32px;
  }
}

@media (max-width: 550px) {
  .grid {
    grid-template-columns: 300px;
  }

  header {
    margin-bottom: 32px;
  }
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-top: 32px;
}

.buttons button {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 550px) {
  .buttons {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}

#error-box {
  color: #b00020;
  position: absolute;
  bottom: -22px;
  font-size: 12px;
  line-height: 24px;
}

#mailbox--links {
  margin-top: 36px;
}

.mailbox--link {
  height: 48px;
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
}

.mailbox--link > img {
  margin-right: 12px;
}

.password-validation-item {
  margin-top: 16px;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.password-validation-tick {
  color: #c2c3c6;
  margin-right: 14px;
}

/* Registration - side panel and slider */

#register-side-panel {
  background: #FFFFFF;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.1), 0px 3px 25px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
}

.register-side-panel__title {
  font-size: 24px;
  line-height: 28px;
  color: black;
  padding: 50px 30px;
  text-align: center;
  height: 140px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-side-panel__image-container {
  background: #292E3E;
  height: 220px;
  padding: 30px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-side-panel__image-container > img {
  width: auto;
  height: 100%;
}

.register-side-panel__text {
  font-size: 16px;
  color: black;
  line-height: 32px;
  padding: 50px 30px 40px;
  text-align: center;
}

@media (max-width: 550px) {
  .register-side-panel__title {
    padding: 20px;
    font-size: 20px;
  }

  .register-side-panel__text {
    font-size: 14px;
    padding: 30px;
    line-height: 24px;
  }
}

.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #C2C3C6;
  margin-right: 6px;
  border-radius: 50%;
  cursor: pointer;
}

.dot-active {
  background-color: #0075e2;
}

.arrow {
  position: absolute;
  color: gray;
  background-color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.08), 0px 0px 1px rgba(0, 0, 0, 0.31);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.arrow-prev {
  left: -40px;
}

.arrow-next {
  right: -40px;
}

/* Tooltip */

.tooltip {
  position: absolute;
  display: inline-block;
  right: -25px;
  top: -4px;
}

.tooltip .tooltip-content {
  visibility: hidden;
  width: 340px;
  background-color: white;
  border-radius: 4px;
  padding: 16px;
  position: absolute;
  bottom: 45px;
  margin-left: -202px;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.14), 0px 1px 18px rgba(0, 0, 0, 0.12),
  0px 3px 5px rgba(0, 0, 0, 0.2);
}

.tooltip__bottom .tooltip-content {
  z-index: 1;
  bottom: initial;
  top: 41px;
  margin-left: -52px;
  background-color: #0E1628;
  color: #F2F4FF;
}

.tooltip__bottom #triangle {
  top: 18px;
  transform: translateX(-50%) scale(0.8) rotateX(180deg);
}

@media (max-width: 700px) {
  .tooltip .tooltip-content {
    padding: 32px;
    width: 280px;
    margin-left: -68px;
  }
}

@media (max-width: 460px) {
  .tooltip .tooltip-content {
    padding: 20px;
    width: 200px;
  }
}

#triangle {
  visibility: hidden;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
}

.tooltip:hover .tooltip-content, .tooltip:hover #triangle {
  visibility: visible;
}

.tooltip.open .tooltip-content, .tooltip.open #triangle {
  visibility: visible;
}

.tooltip-icon {
  width: 17px;
}

/* Loading submit button */

.loading-button {
  margin-right: 150px;
  position: absolute;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.rotating {
  -webkit-animation: rotating 2s linear infinite;
  -moz-animation: rotating 2s linear infinite;
  -ms-animation: rotating 2s linear infinite;
  -o-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

/* Common -- typography */

.base-label {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #626576;
}

.heading6 {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
}

.base-caption {
  font-size: 12px;
  line-height: 22px;
  color: #212533;
}

.form-field .error {
  word-break: break-all;
  color: #CF3228;
  margin-top: 4px;
  margin-bottom: 0;
}

.error {
  word-break: break-all;
  color: #CF3228;
  display: block;
  margin-bottom: 16px;
}

.card-error {
  padding: 12px 16px;
  color: #cf3228;
  background-color: #fff8f7;
  font-size: 12px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.card-error > i {
  font-size: 16px;
  margin-right: 8px;
}

.error-container {
  max-width: 408px;
  text-align: center;
}

.error-container .status {
  color: #0075e2;
  font-size: 96px;
  font-weight: normal;
  line-height: 96px;
}

.error-container .msg {
  margin-top: 12px;
  color: #626576;
  font-size: 28px;
  font-weight: normal;
  line-height: 40px;
}

.error-container .details {
  margin-top: 12px;
  color: #626576;
  font-size: 16px;
  font-weight: normal;
}

.error-container .error-trace {
  font-size: 12px;
  color: #626576;
  padding-top: 12px;
}

.tenant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #212533;
  background: #FBFCFD;
  padding: 12px 16px;
  border: 1px solid #B2B3B5;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.04), 0px 3px 2px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  margin-bottom: 12px;
}

.tenant-card:hover .tenant-icons-trash {
  opacity: 1;
}

.tenant-card > div {
  display: flex;
}

.tenant-card img {
  margin-right: 12px;
}

.tenant-icons-trash {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  opacity: 0;
}

.tenant-icons-trash svg {
  width: 16px;
  height: 16px;
}

/* new styles - no mdc */

.label-with-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.label-with-link > button {
  border: none;
  background: none;
  color: var(--theme-primary);
  font-weight: 600;
  font-size: 12px;
}

.form-field label {
  font-weight: 600;
  font-size: 12px;
  line-height: 24px;
  color: #626576;
  margin-bottom: 4px;
  display: block;
}

.form-field input {
  height: 48px;
  width: 100%;
  border: solid 1px gray;
  border-radius: 4px;
  padding: 0 16px;
  box-sizing: border-box;
}


.input-with-button {
  position: relative;
  border: solid 1px gray;
  border-radius: 4px;
  background-color: #fcfcff;
}

.input-with-button input {
  width: calc(100% - 48px);
  border: none;
}

.input-with-button button {
  position: absolute;
  top: 6px;
  right: 4px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-button button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.input-with-button button > i {
  color: gray;
}

.text-button {
  height: 48px;
  min-width: 120px;
  border: none;
  font-size: 15px;
  border-radius: 4px;
  color: var(--theme-primary);
  background: none;
  border: 1px solid var(--theme-primary);
}

.submit-button {
  width: 100%;
  height: 48px;
  color: white;
  background-color: var(--theme-primary);
  border: none;
  border-radius: 4px;
  font-size: 15px;
  box-shadow: 0px 3px 1px -2px rgb(0, 0, 0, 0.2),
    0px 2px 2px 0px rgb(0, 0, 0, 0.14), 0px 1px 5px 0px rgb(0, 0, 0, 0.12);
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover:not(:disabled) {
  opacity: 0.95;
  box-shadow: 0px 2px 4px -1px rgb(0, 0, 0, 0.2),
    0px 4px 5px 0px rgb(0, 0, 0, 0.14), 0px 1px 10px 0px rgb(0, 0, 0, 0.12);
}

.submit-button:disabled {
  cursor: not-allowed;
  background-color: #b2b3b5;
}

.submit-button i {
  margin-right: 8px;
  font-size: 20px;
}

#create-tenant-button {
  position: relative;
}

/* dropdown */

.dropdown-button {
  background: none;
  height: 48px;
  width: 100%;
  border: solid 1px gray;
  border-radius: 4px;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: left;
  position: relative;
}

.dropdown {
  position: absolute;
  width: 100%;
  margin-top: 77px;
  visibility: hidden;
  z-index: 1;
  background-color: white;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0,0,0,.12);
}

.flag-selector {
  display: inline-flex;
}

.flag-selector .flag-img {
  width: 24px;
  height: 16px;
  margin-right: 8px;
}

.flag-selector .dropdown-button-container {
  position: relative;
}

.flag-selector #dropdown-button {
  display: flex;
  align-items: center;
  margin-left: 8px;
  position: absolute;
  top: 3px;
}

.flag-selector #dropdown-button:hover {
  cursor: pointer;
}

.flag-selector #dropdown-button svg {
  width: 16px;
  height: 16px;
}

.flag-dropdown {
  position: absolute;
  min-width: 165px;
  margin-top: 8px;
  visibility: hidden;
  z-index: 1;
  background-color: white;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0,0,0,.12);
}

.dropdown-show {
  visibility: visible;
}

.dropdown-arrow {
  position: absolute;
  right: 8px;
  top: 11px;
  width: 20px;
}

.dropdown-arrow-rotate {
  transform: rotate(180deg);
}

.dropdown button, .flag-dropdown button {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
}

.dropdown button:hover,.flag-dropdown button:hover {
  background-color: #ebebeb;
}

#dropdown-button-content {
  display: flex;
  align-items: center;
}

.label-with-tooltip .tooltip {
  position: relative;
  top: 7px;
  right: -4px;
}

.label-with-tooltip .tooltip-content {
  bottom: 49px;
}

.info-icon {
  width: 16px;
  margin-right: 8px;
}

.visibility-button svg {
  width: 20px;
  height: 20px;
  color: #626576;
}
