* {
  font-family: Roboto;
  font-weight: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

body {
  background: #fff;
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  display: flex;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  justify-content: space-between;
  padding: 8px 16px;
  align-items: center;
}

img {
  max-width: 100%;
}

header img.logo {
  max-height: 32px;
}

main {
  margin-top: 40px;
}

section {
  border-radius: 12px;
  box-shadow: 0px 0px 0px 1px #ebebeb;
  overflow: hidden;
}

section:last-child {
  margin-bottom: 24px;
}

section + section {
  margin-top: 16px;
}

ul {
  list-style-type: none;
}

ol li::marker {
  font-weight: bold;
}

ol li {
  margin-bottom: 8px;
  font-size: 18px;
}

/* Header */

.home-link {
  display: flex;
}

header.color .user-menu {
  background: rgba(255, 255, 255, 0.2);
}

header.color .user-menu:hover {
  background: rgba(255, 255, 255, 0.3);
}

.user-menu {
  border-radius: 50%;
  height: 32px;
  width: 32px;
  overflow: hidden;
  background: #ebebeb;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu:hover {
  background: #d6d6d6;
}

header.white .user-menu svg path {
  fill: #297acc;
}

.user-menu-content.show {
  display: block;
}

.user-wrap {
  position: relative;
}

.nav-link {
  display: flex;
  text-decoration: none;
  align-items: center;
  padding: 8px;
}

.nav-link:hover {
  background: #f5f5f5;
  border-radius: 8px;
}
.nav-link:hover .menu-icon {
  border-color: #fff;
}

.nav-link + .nav-link {
  margin-top: 8px;
}

.menu-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ebebeb;
  height: 40px;
  width: 40px;
  margin-right: 24px;
  transition: border 0.2s ease;
}

.link-name {
  font-weight: bold;
  line-height: 20px;
  color: #000;
}

.link-addon {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #737373;
  line-height: 16px;
}

.user-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 1;
  cursor: pointer;
}

.user-menu-backdrop.show {
  display: block;
}

.user-menu-content {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  width: 256px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 8px;
  z-index: 2;
}

/* Section */

.page-content {
  width: 560px;
}

.page-content h1 {
  font-weight: bold;
  font-size: 2em;
  margin-bottom: 16px;
}

.page-subtitle {
  color: #4d4d4d;
  margin-bottom: 40px;
}

.page-subtitle a {
  color: #0073e5;
  text-decoration: none;
}

.section-header {
  padding: 24px 24px 19px;
  border-bottom: 1px solid #ebebeb;
}

.section-header.styled {
  background: #297acc;
}

.section-header.with-icon svg,
.section-header.with-icon img {
  display: block;
  max-height: 32px;
}

.section-header.with-icon {
  padding: 14px 16px;
}

.section-header p {
  font-size: 14px;
  line-height: 1.42;
}

.section-header h2 + p {
  margin-top: 8px;
}

.section-header h2 {
  font-weight: bold;
  font-size: 18px;
  line-height: 1.33;
}

.additional-header {
  padding: 48px 80px 24px;
}

.additional-header h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: bold;
}

.page-head {
  display: flex;
}

/* Profile */

.profile-nav a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

.profile-nav a:hover {
  background: #fafafa;
}

.profile-nav li:not(:last-child) a:after {
  content: '';
  position: absolute;
  display: block;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: #ebebeb;
}

.profile-nav a p {
  flex: 1;
  font-size: 16px;
  line-height: 1.25;
  color: #333;
}

.profile-nav a span {
  flex: 0 0 120px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #737373;
  line-height: 1.66;
  letter-spacing: 0.05em;
}

section form {
  padding: 24px 80px;
}

/* MFA pages */

.mfa {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mfa-wrap {
  padding: 30px 72px 24px;
}

.mfa-wrap h2 {
  font-weight: bold;
  font-size: 24px;
  line-height: 1.33;
  margin-bottom: 8px;
}

.mfa-wrap p {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.33;
}

.mfa-wrap p span {
  font-weight: bold;
}

.mfa-wrap + form {
  padding: 0 72px 24px;
}

.mfa-wrap + .form-error {
  padding: 0 72px;
}

.mfa-wrap + .form-error + form {
  padding: 24px 72px;
}

.mfa-wrap img {
  width: 260px;
  height: 260px;
  margin: 18px auto 24px;
  display: block;
}

.mfa-info span {
  font-weight: bold;
  opacity: 0.8;
  font-size: 14px;
}

.mfa-info p {
  font-weight: bold;
  font-size: 18px;
  line-height: 1.33;
  margin-bottom: 8px;
}

.mfa-public {
  padding: 28px 60px;
}

.mfa-public h1,
.mfa-public h2 {
  font-weight: bold;
  margin-bottom: 24px;
}

.mfa-public p {
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 24px;
}

.mfa-public ol {
  margin-left: 18px;
  margin-bottom: 40px;
}

.links a {
  text-decoration: none;
  color: #0073e5;
}

.links p {
  margin-bottom: 8px;
}

.links {
  margin-bottom: 24px;
}

.text-wrap {
  margin-bottom: 40px;
}

.text-wrap p {
  margin-bottom: 8px;
}

.text-wrap a {
  color: #0073e5;
  text-decoration: none;
}
/* Buttons */

.btn {
  padding: 4px 16px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  background: #0073e5;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  outline-offset: 5px;
}

.btn.secondary {
  font-weight: 400;
  color: #333333;
  border: 1px solid rgba(51, 51, 51, 0.1);
  background: #fff;
}

.btn.disabled {
  background: #f5f5f5;
  color: #333333;
  font-weight: normal;
}

.btn.error {
  color: #fff;
  background: #e52525;
}

.btn.full-width {
  width: 100%;
}

.back-button {
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #f3f3f3;
  margin-right: 32px;
  position: relative;
}

.back-button::after {
  content: '';
  position: absolute;
  height: 24px;
  width: 1px;
  background: #d6d6d6;
  right: -16px;
}

/* Forms */

.form-row {
  margin: 0;
  width: 100%;
}

.form-row input {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 12px;
  font-size: 16px;
  line-height: 1.25;
  width: 100%;
  transition: all 0.2s ease;
  color: #333;
}

.form-row input:disabled {
  pointer-events: none;
}

.field_with_errors input {
  border: 2px solid #e52525;
}

.form-row input:required ~ label:after {
  content: '*';
  font-size: 16px;
  color: #e61717;
  margin-left: 4px;
}

.form-row input:active,
.form-row input:focus {
  outline: #0073e6 auto 2px;
  background: #fff;
}

.form-row .input-wrap {
  padding-top: 22px;
  position: relative;
}

.input-wrap.password input {
  padding-right: 36px;
}

.input-hint {
  font-size: 14px;
  line-height: 16px;
  margin-top: 6px;
  color: #4d4d4d;
}

.form-row label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.15;
}

.form-row .input-addon {
  position: absolute;
  top: 31px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-row.has-addon input {
  padding-left: 44px;
}

.form-error {
  display: flex;
  align-items: center;
  color: #e52525;
  padding: 24px 80px 0;
}

.form-error h4 {
  font-weight: bold;
}

.inline-errors {
  padding-top: 5px;
  color: red;
  font-size: 14px;
}

.inline-errors ul {
  list-style-type: disc;
  padding-left: 25px;
}

.icon-circle {
  display: flex;
  background: #f5f5f5;
  border-radius: 50%;
  padding: 7px;
  margin-right: 12px;
}

.form-row.flex-end {
  display: flex;
  justify-content: flex-end;
}

.form-row.columns {
  display: flex;
  justify-content: space-between;
}
.form-row.columns .input-wrap {
  flex: calc(50% - 8px);
}
.form-row.columns .input-wrap + .input-wrap {
  margin-left: 16px;
}

.link {
  display: inline-block;
  font-size: 14px;
  color: #0073e5;
  text-decoration: none;
}

.app-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 16px;
}

.app-wrap a {
  display: flex;
}

.app-wrap a + a {
  margin-left: 18px;
}

.toggle-password {
  position: absolute;
  background: none;
  border: none;
  right: 8px;
  top: 33px;
  cursor: pointer;
}

.form-row.radio {
  display: flex;
  align-items: center;
  padding: 20px 8px;
  margin: 0 8px;
  width: calc(100% - 16px);
  position: relative;
  cursor: pointer;
}

.form-row.radio:hover {
  background: #fafafa;
}

.form-row.radio:after {
  position: absolute;
  content: '';
  height: 1px;
  width: 100%;
  bottom: 0;
  left: 0;
  background: #ebebeb;
}

.form-row.radio input {
  width: auto;
  margin-right: 16px;
}

/* Checkbox */

.form-row .checkbox-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  color: #333;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  width: 16px;
  left: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background: url('/assets/checkbox.svg');
  border-radius: 2px;
}

.checkbox-container input:checked ~ .checkmark {
  background: url('/assets/checkbox_checked.svg');
}

.label-link {
  margin-left: 4px;
  text-decoration: none;
  line-height: 16px;
  color: #0073e5;
}

/* Password strength */

.meter {
  display: flex;
  margin: 6px 0;
}

.meter span {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  margin-right: 2px;
}

.password-strength .score-text {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

.password-strength {
  display: none;
}
.password-strength.show {
  display: block;
}

.password-strength.red span:nth-child(-n + 2) {
  background: #e52525;
}
.password-strength.orange span:nth-child(-n + 4) {
  background: #ff9327;
}
.password-strength.yellow span:nth-child(-n + 6) {
  background: #ffbf00;
}
.password-strength.olive span:nth-child(-n + 8) {
  background: #8fbf30;
}
.password-strength.green span:nth-child(-n + 10) {
  background: #00b300;
}

/* Flash msg */

.flash-msg {
  width: 560px;
  position: fixed;
  z-index: 10;
  border-radius: 12px;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ebebeb;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
  padding: 16px 32px;
  animation: 0.5s ease-in 3s forwards transitionUp;
}

.flash-msg span {
  display: block;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 8px;
}

@-webkit-keyframes transitionUp {
  0% {
    top: 16px;
  }
  100% {
    top: -300px;
  }
}
@keyframes transitionUp {
  0% {
    top: 16px;
  }
  100% {
    top: -300px;
  }
}

/* Helper classes */

.color-red {
  color: #e52525 !important;
}

.color-green {
  color: #11ab11 !important;
}

.bold {
  font-weight: bold;
}

.mb8 {
  margin-bottom: 8px !important;
}

.mb24 {
  margin-bottom: 24px;
}

.mb48 {
  margin-bottom: 48px;
}

.mt24 {
  margin-top: 24px;
}

.mb64 {
  margin-bottom: 48px;
}

.ml8 {
  margin-left: 8px;
}

.error-content {
  padding: 48px 72px;
}

.error-page {
  margin-top: calc(50vh - 40px);
  transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
  main {
    margin-top: 0;
    width: 100%;
  }

  section form {
    padding: 24px 16px;
  }

  .page-content {
    width: auto;
    padding: 16px;
  }

  .flash-msg {
    width: calc(100% - 32px);
  }

  .page-content h1 {
    font-size: 20px;
  }

  .mfa {
    display: block;
  }

  .mfa .btn {
    display: inline-block;
  }

  .mfa-info {
    margin-bottom: 16px;
  }

  .mfa-wrap {
    padding: 30px 16px 24px;
  }

  .mfa-wrap + form {
    padding: 0 16px 24px;
  }

  .mfa-wrap p span {
    word-break: break-all;
  }

  .app-wrap a {
    width: 110px;
  }

  .form-error {
    padding: 24px 16px 0;
  }

  .mfa-wrap + .form-error + form {
    padding: 24px 16px;
  }
  .mfa-wrap + .form-error {
    padding: 0 16px;
  }

  .mfa-public {
    padding: 48px 16px;
  }

  .error-content {
    padding: 54px;
  }
  .additional-header {
    padding: 24px 16px;
  }

  .profile-nav a p {
    flex: 0 0 calc(100% - 144px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.intercom-lightweight-app-launcher:focus {
  outline: 2px solid #0073e5 !important;
  outline-offset: 5px;
}

@media screen and (max-width: 320px) {
  .form-row .checkbox-container {
    font-size: 12px;
  }
}
