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

html, body {
  width: 100%;
  height: 100%;
  font-family: "sofia-pro", sans-serif;
  font-size: 100%;
}

input {
  font-family: "sofia-pro", sans-serif;
  -webkit-appearance: none;
}

ul, ol {
  padding-inline-start: 0;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

body {
  background-color: #f7f7f7;
}

.auth {
  max-width: 32em;
  margin: auto;
  padding-bottom: 4em;
  background-color: white;
}
.auth.single-menu-item {
  padding-top: 4em;
}
.auth.single-menu-item #logo {
  margin-top: 0;
}

#logo {
  max-width: 120px;
  display: block;
  margin: 4em auto;
}

#auth-menu {
  display: flex;
  overflow-x: auto;
  align-items: stretch;
  list-style-type: none;
  background-color: #F0F0F0;
}

.auth-menu-item {
  display: flex;
  position: relative;
  flex: 1 1 100%;
  color: #9E9E9E;
  text-align: center;
}

.auth-menu-item.active {
  color: #007FDB;
  background-color: white;
}

.auth-menu-link {
  width: 100%;
  display: block;
  padding: 1em 1.5em;
  color: inherit;
  font-size: 1.25em;
  font-weight: bold;
  text-decoration: none;
}
.auth-menu-link:hover {
  text-decoration: none;
}

.auth-link-icon {
  display: block !important;
  margin-right: 0.25em;
  vertical-align: bottom;
  font-size: 1.25em;
}

.auth-menu-item.bordered::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  display: block;
  width: 2px;
  height: 60%;
  border-radius: 50px;
  background-color: #e0e0e0;
  transform: translateY(-50%);
}

#auth-form {
  max-width: 20em;
  margin: auto;
  padding: 0 1em;
}

.btn {
  width: 100%;
  padding: 0.75em 1.5em;
  display: block;
  margin: 1em auto 0;
  border: none;
  border-radius: 4px;
  background-color: #007FDB;
  color: white;
  font-size: 1.25em;
  font-weight: bold;
  text-align: center;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}
.btn:hover, .btn:focus {
  text-decoration: none;
  transform: translateY(2px);
}

.field-group {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.field-group:not(:last-of-type) {
  margin-bottom: 0.75em;
}

.field-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.field-input-wrapper:after {
  content: "";
  min-height: inherit;
  font-size: 0;
}

.field-label {
  z-index: 0;
  position: absolute;
  left: 0.75em;
  padding: 0 0.5em;
  transition: all 0.2s ease;
  background-color: white;
  color: #393939;
  line-height: 1;
  cursor: text;
  pointer-events: none;
}

.field-icon {
  z-index: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  flex: 1 1 auto;
  padding: 0 0.875rem;
  background-color: #E8E8E8;
  color: #9E9E9E;
  font-size: 1.5625em;
  pointer-events: none;
}
.field-icon ~ .field-label {
  left: 3.4375em;
}

.field-input {
  z-index: 1;
  width: 100%;
  min-width: 0;
  flex-basis: 100%;
  padding: 0.875em 1em 0.875em 0.75em;
  border: 2px solid #e1e1e1;
  border-radius: 0;
  background: transparent;
  color: #393939;
  font-size: 1em;
  transition: all 0.2s ease;
}
.field-input:focus {
  border-color: #007FDB;
  outline: none;
}
.field-input.active + .field-label, .field-input:focus + .field-label {
  left: 4.125em;
  font-size: 0.875em;
  transform: translateY(-1.875em);
  z-index: 2;
}
.field-input:focus + .field-label {
  color: #007FDB;
}
.field-input:not(:focus).active + .field-label {
  color: #9E9E9E;
}

.field-errors, .form-errors {
  width: 100%;
  list-style-type: none;
  background-color: #ffcece;
  color: #ad1919;
}

.field-error, .form-error {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  cursor: pointer;
}

.form-error {
  margin-top: 1em;
}

.field-error:not(:first-child), .form-error:not(:first-child) {
  padding-top: 0em;
}

.error-close-btn {
  padding-left: 1em;
  justify-self: flex-end;
  font-size: 1em;
  cursor: pointer;
}

#auth-retry {
  color: #007FDB;
}

#toggle-password-btn {
  z-index: 3;
  position: absolute;
  right: 0.25em;
  padding: 0.5em;
  border: none;
  background-color: transparent;
  color: #bbbbbb;
  font-size: 1.375em;
  cursor: pointer;
}

#forgot-password-link {
  font-size: 0.875em;
  color: #a4a4a4;
  margin-top: 0.5em;
}

.password-field {
  padding-right: 3em;
}

#info-items {
  margin-top: 1em;
  text-align: center;
  color: gray;
  padding: 0 1em;
}

.info-item {
  word-break: keep-all;
}
.info-item:first-child {
  margin-right: 1em;
}

.info-label {
  font-weight: bold;
}

#policies {
  font-size: 0.875em;
  color: #9e9e9e;
}

.policy-link {
  color: #66A0C9;
}

.message-container {
  width: 85%;
  max-width: 24em;
  margin: auto;
  text-align: center;
}

.message-title {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #393939;
}

.message-text {
  font-size: 1.25em;
  color: #535353;
}

.message-btn {
  max-width: 12em;
  margin-top: 1.5em;
}

.login-footer-link {
  display: block;
  margin-top: 1em;
  text-decoration: none;
  color: #525252;
  text-align: center;
}

.login-footer-nav {
  width: 90%;
  max-width: 16em;
  margin: 2em auto -2em;
  letter-spacing: -1px;
  text-align: center;
}

.login-footer-line {
  border: 1px solid #eaeaea;
  border-radius: 50px;
  margin-bottom: 1em;
}

.login-footer-link {
  color: #5f5f5f;
  font-size: 1.25em;
}

@media only screen and (min-width: 27em) {
  .auth-menu-link {
    padding: 1em;
    font-size: 1.3125em;
  }

  .auth-link-icon {
    display: inline !important;
  }
}
@media only screen and (min-width: 30em) {
  body {
    padding-top: 5em;
  }

  .auth {
    margin-bottom: 3em;
  }
}
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), only screen and (min--moz-device-pixel-ratio: 2) and (min-width: 320px), only screen and (-o-min-device-pixel-ratio: 2/1) and (min-width: 320px), only screen and (min-device-pixel-ratio: 2) and (min-width: 320px), only screen and (min-resolution: 192dpi) and (min-width: 320px), only screen and (min-resolution: 2dppx) and (min-width: 320px) {
  #auth-form {
    font-size: 1.125em;
  }

  .field-input {
    font-size: 1em;
    padding-left: 0.75em;
  }
  .field-input.active + .field-label, .field-input:focus + .field-label {
    left: 4.75em !important;
    transform: translateY(-2.0625em) !important;
  }

  .field-icon {
    padding: 0 0.625em;
  }

  .field-label {
    left: 4em !important;
  }

  .password-field {
    padding-right: 2.75em;
  }
}
html[data-ie=true] .field-label {
  top: 50%;
  transform: translateY(-50%);
}
html[data-ie=true] .field-input.active + .field-label, html[data-ie=true] .field-input:focus + .field-label {
  transform: translateY(-2.5em);
}
html[data-ie=true] #toggle-password-btn {
  top: 6px;
}

#login {
  padding: 2em 0 7em;
}

#login > #logo {
  margin-bottom: 2em;
}

#login-redirect {
  padding: 2em 0 7em;
}

#login-redirect > #logo {
  margin-bottom: 2em;
}

#login-title {
  margin-bottom: 1em;
  color: #393939;
  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
  letter-spacing: -1px;
}

.card-notify-text {
  width: 90%;
  max-width: 20em;
  margin: auto;
  text-align: center;
  font-weight: 500;
  font-size: 1.25em;
  color: #393939;
}
