*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #f99d27;
  --primary-dark: #f8920e;
  --banner-h: 45px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  background: #f2f3f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: rgb(0, 139, 224);
  text-decoration: none;
  cursor: pointer;
}

.text-theme,
.font-color-primary {
  color: var(--primary) !important;
}

a.text-theme:active,
a.text-theme:focus,
a.text-theme:hover {
  color: var(--primary-dark) !important;
}

/* Downtime banner */
.downtime-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  padding: 12px 16px;
  background-color: #f99d27;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.downtime-banner .fa {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: #fff;
}

/* Header with logo */
.m-header {
  padding: 5px 50px 20px;
}

.m-header.fixed {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 1030;
  pointer-events: none;
}

.m-header.pb-10 {
  padding-bottom: 10px;
}

.logo-block {
  height: 70px;
}

.logo-block img {
  height: 50px;
  vertical-align: middle;
}

/* Floating background art */
.backgroud-oval {
  height: 570px;
  width: 570px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.backgroud-oval img {
  position: absolute;
  max-width: 100%;
  vertical-align: middle;
  animation-name: floating;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.backgroud-oval .oval-back {
  top: 0;
  left: 0;
  animation-duration: 5s;
}

.backgroud-oval .oval-middle {
  top: -8px;
  left: 0;
  animation-duration: 4s;
}

.backgroud-oval .oval-front {
  top: 6px;
  left: 20px;
  animation-duration: 3s;
}

@keyframes floating {
  0% { transform: translate(0); }
  65% { transform: translateY(15px); }
  100% { transform: translate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .backgroud-oval img { animation: none; }
}

/* Card layout */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-block {
  flex: 0 1 450px;
  max-width: 450px;
  height: 525px;
}

.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 82px);
}

.register-block {
  flex: 0 1 450px;
  max-width: 450px;
}

.card {
  position: relative;
  display: block;
  padding: 50px;
  background: #fff;
  color: rgba(0, 0, 0, 0.87);
}

.min-h-480 { min-height: 480px; }
.min-h-500 { min-height: 500px; }
.p-20 { padding: 20px; }

.title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 400;
}

.title.fw-300 { font-weight: 300; }
.title.lh { line-height: 42px; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-70 { margin-top: 70px; }
.mb-15 { margin-bottom: 15px; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.m-input {
  display: flex;
  flex-direction: column;
}

form {
  margin: 0;
}

/* Back to login */
.back-link {
  display: block;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.3;
  height: 30px;
}

.back-link img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.back-link .login-text {
  position: absolute;
  top: 50px;
  left: 80px;
  padding: 3px 13px;
}

/* Material legacy form field */
.ff {
  display: inline-block;
  position: relative;
  width: 100%;
  font-size: 14px;
  line-height: 1.125;
  text-align: left;
}

.ff-wrapper {
  position: relative;
  padding-bottom: 1.25em;
}

.ff-flex {
  display: inline-flex;
  align-items: baseline;
  width: 100%;
}

.ff-infix {
  position: relative;
  display: block;
  flex: auto;
  width: 180px;
  min-width: 0;
  padding: 11px 0;
  border-top: 11.5px solid transparent;
}

.ff-infix input {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  height: 16px;
  margin: -0.0625em 0 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.87);
  caret-color: var(--primary);
  vertical-align: bottom;
  border-radius: 3px;
}

.ff-label-wrapper {
  position: absolute;
  left: 0;
  top: -0.84375em;
  box-sizing: content-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  padding-top: 0.84375em;
}

.ff-label {
  position: absolute;
  left: 0;
  top: 20.5px;
  width: 100%;
  font-size: 16px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.54);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: 0 0;
  transform: perspective(100px);
  transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), color 400ms cubic-bezier(0.25, 0.8, 0.25, 1), width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ff:focus-within .ff-label,
.ff.should-float .ff-label {
  transform: translateY(-1.28125em) scale(0.75) perspective(100px) translateZ(0.001px);
  width: 133.3333%;
}

.ff:focus-within .ff-label {
  color: var(--primary);
}

.ff-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25em;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.42);
}

.ff-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.87);
  transform-origin: 50%;
  transform: scaleX(0.5);
  opacity: 0;
  transition: background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2);
}

.ff:focus-within .ff-ripple {
  opacity: 1;
  transform: none;
  background-color: var(--primary);
  transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ff-subscript {
  position: absolute;
  top: calc(100% - 17.5px);
  left: 0;
  width: 100%;
  margin-top: 0.541667em;
  font-size: 75%;
  line-height: 1.125;
  overflow: hidden;
}

.password-eye {
  position: absolute;
  top: 13px;
  right: 0;
  width: 30px;
  height: 15.75px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
  line-height: 1.125;
  font: inherit;
}

.password-eye img {
  vertical-align: middle;
}

/* Checkbox */
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #686868;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: middle;
}

.checkbox-box {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 4px 8px 4px 0;
  line-height: 0;
  vertical-align: middle;
  order: 0;
}

.checkbox-box input {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 0, 0, 0.54);
  border-radius: 2px;
  pointer-events: none;
  transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);
}

.checkbox-bg {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  pointer-events: none;
  transition: background-color 90ms cubic-bezier(0, 0, 0.2, 0.1);
}

.checkbox-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.checkbox-bg path {
  stroke: #fafafa;
  stroke-width: 2.13333px;
  fill: none;
}

.checkbox-box input:checked ~ .checkbox-bg {
  background-color: #b02a30;
}

.checkbox-box input:checked ~ .checkbox-frame {
  border-color: transparent;
}

.checkbox-box input:checked ~ .checkbox-bg svg {
  opacity: 1;
}

.checkbox-label {
  line-height: 24px;
}

/* Buttons */
.btn-round {
  display: inline-block;
  position: relative;
  min-width: 150px;
  height: 56px;
  margin: 0;
  padding: 20px 30px;
  border: 0;
  border-radius: 50px;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.26);
  opacity: 0.8;
  cursor: default;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.recaptcha-note {
  margin-top: 10px;
  padding: 10px;
  font-size: 12px;
  text-align: left;
}

/* OR divider and Google button */
.social-login-block {
  margin-top: 10px;
  text-align: center;
}

.or-line {
  position: relative;
  margin-bottom: 10px;
}

.or-line::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  display: block;
  width: 100%;
  border-bottom: 1px solid #ddd;
  z-index: 0;
}

.or-line span {
  display: inline-block;
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 23px;
  background: #fff;
  color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.google-wrap {
  display: flex;
  justify-content: center;
}

.google-btn {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background-color: #fff;
  color: #3c4043;
  font-family: "Google Sans", arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: background-color 0.218s, border-color 0.218s;
}

.google-btn:hover {
  border-color: #d2e3fc;
  background-color: rgba(66, 133, 244, 0.04);
}

.google-btn img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
}

.google-btn span {
  flex-grow: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat button */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 10px 15px;
  border: 0;
  border-radius: 50%;
  background-color: #f99d27;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  outline: none;
  transition: 0.4s ease-out;
}

.chat-fab svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: #fff;
}

@media (max-width: 480px) {
  .m-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card {
    padding: 50px 24px;
  }

  .back-link .login-text {
    left: 54px;
  }
}
