body {
  min-height: 100vh;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
  font-size: 14px;
  color: #323232;
  background: #f4f6f8;
  padding: 0;
  margin: 0;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  color: #383838;
  text-decoration: underline;
  outline: none;
}

label {
  display: block;
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 5px;
}

p {
  margin-bottom: 0;
}

h1 {
  font-size: 34px;
  font-weight: normal;
  text-align: left;
  margin-top: 0;
}

.btn {
  cursor: pointer;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.btn:focus {
  outline: none;
}

.btn,
.form-control {
  -webkit-appearance: none;
}

.btn:focus,
.form-control:focus {
  outline: none;
}

.btn {
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  padding: .78571429em 1.5em .78571429em;
  text-align: center;
}

.btn-default,
.btn-default:hover
.btn-default:active,
.btn-default:visited {
  border: none;
  background: #fff;
  color: #5991ff;
  padding-left: 0;
  padding-right: 0;
}

.btn-default:hover {
  color: #679aff !important;
}

.btn-default:active {
  color: #4785ff !important;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:visited {
  background: #383838;
  border: 2px solid #383838;
  color: #fff;
}

.btn-primary:hover {
  background: #383838;
  color: #fff;
}

.btn-primary:active {
  background: #383838;
  border: 2px solid #383838;
  box-shadow: none !important;
  color: #fff;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:visited {
  color: #383838;
  border: 2px solid #383838;
}

.btn-secondary:hover {
  color: #383838;
  background: rgba(125,125,125,.2);
}

.btn-secondary:active {
  color: #4785ff;
  background: #ffffff;
  border: 1px solid #383838;
}

.btn-block {
  display: block;
  width: 100%;
}

.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-pf {
  flex: 1;
  box-sizing: border-box;
  border: none;
  padding: 24px;
}

.form-control,
.form-control:hover,
.form-control:focus {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  background: #fff;
  border: 1px solid rgb(51,51,51,0.1);
  border-radius: 8px;
  color: #333333;
  box-shadow: none;
}

.form-control.error,
.form-control.error:hover,
.form-control.error:focus {
  border-color: #e0b4b4;
  color: #9f3a38;
  -webkit-text-fill-color: #9f3a38;
}

.password-input-wrapper.error {
  border-color: #e0b4b4;
}

a.redirect-link {
  text-decoration: none;
}

a.redirect-link, a.redirect-link:hover, a.redirect-link:focus, a.redirect-link:active, a.redirect-link:visited {
  color: #007CB4;
}

.form-control-error-message {
  margin-top: 5px;
  font-size: 12px;
  color: #9f3a38;
}

::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.3);
}

:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 16px;
}

.checkbox label,
.checkbox input {
  cursor: pointer;
}

label.required::before {
  content: none!important;
}

.checkbox label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1px;
  font-size: 12px;
  color: #383838;
}

#kc-register-form .checkbox label {
  font-size: 12px;
  align-items: flex-start;
}

.checkbox input {
  margin-right: 5px;
}

#kc-register-form .checkbox input {
  margin-top: 2px;
}

.login-pf-page {
  width: 100%;
  padding: 20px;
  box-sizing: content-box;
  max-width: 440px;
}

.login-pf-page-header {
  display: none;
}

.gelato-logo-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
}

.top-links-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.top-links-wrapper a {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #FFFFFF;
}

.back-to-gelato-com-api-link-wrapper {
  position: absolute;
  left: 30px;
  top: 30px;
}

.bottom-link-wrapper {
  text-align: center;
  font-weight: 400;
  text-align: center;
}

.bottom-link-wrapper .back-to-gelato-com-api-link-wrapper {
  display: none;
}

.login-pf-settings {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}

.login-pf-social-section {
  margin-top: 10px;
}

.login-pf-social-link span {
  padding-left: 25px;
}

.login-pf-social-link a,
.login-pf-social-link a:visited {
  position: relative;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  color: #5991FF;
  border: 2px solid #5991FF;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  padding: .78571429em 1.5em .78571429em;
}

.login-pf-social-link a span {
  width: 100%;
}

.login-pf-social-link a:before {
  position: absolute;
  left: 32px;
  top: 0;
  content: " ";
  width: 36px;
  height: 100%;
  background-size: 20px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.login-pf-social-link a#zocial-google:before {
  background-image: url("../img/google-logo.png");
}
.login-pf-social-link a#zocial-facebook:before {
  background-image: url("../img/facebook-logo.png");
}
.login-pf-social-link a#zocial-apple:before {
  background-image: url("../img/apple-logo.png");
}

.login-pf-social-link a:hover  {
  color: #383838;
  background: rgba(125,125,125,.2);
}

.login-pf-social-link a#sign-up-by-email {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.login-pf-social-link a#sign-up-by-email:hover{
  color: #fff;
  background-color: #192631;
}

.login-pf-social-link a:active {
  color: #383838;
  background: rgba(125,125,125,.2);
}

.create-account-button-wrapper {
  margin-top: 20px;
}

.alert.alert-error {
  box-shadow: 0 0 0 1px #e0b4b4 inset, 0 0 0 0 transparent;
  border: none;
  border-radius: 4px;
  background-color: #fff6f6;
  color: #D0412D;
  font-weight: bold;
  padding: 1em 1.5em;
  margin-bottom: 20px;
}
.alert.alert-error {
  box-shadow: 0 0 0 1px #e0b4b4 inset, 0 0 0 0 transparent;
  border: none;
  border-radius: 12px;
  background-color: #fff6f6;
  color: #9f3a38;
  font-weight: bold;
  padding: 1em 1.5em;
  margin-bottom: 20px;
}
.alert-info, .alert-warning, .alert-success {
  border-radius: 4px;
  background: #EEF1FB;
  border: 1px solid #6395DF;
  color: #5178B4;
  font-size: 12px;
  margin-bottom: 20px;
  padding: 12px 38px 12px 12px;
}
.alert .pficon {
  display: none;
}

.flex-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.intro {
  width: 50%;
  box-sizing: border-box;
  background: url("../img/intro-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.intro h2 {
  font-size: 40px;
  font-weight: bold;
  margin-left: 20px;
  margin-bottom: 32px;
}

.intro ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro ul li {
  margin-bottom: 18px;
  font-size: 16px;
}

.intro ul li::before {
  content: '✓';
  margin-right: 10px;
}

.main {
  width: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.main-bottom {
  min-height: 60px;
}

.control-label.required::before,
.checkbox.required label::before {
  color: rgba(0, 0, 0, 0.3);
  content: '*';
  margin-left: -9px;
  margin-right: 3px;
}

.password-input-wrapper {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid rgb(51,51,51,0.1);
  color: #333333;
  border-radius: 8px;
  box-shadow: none;
}

.password-input-wrapper .form-control {
  width: calc(100% - 40px);
  border: 0;
  height: 40px;
}

.password-visibility-toggle {
  position: absolute;
  top: 0;
  right: 0;
  background-image: url("../img/eye-crossed.svg");
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  width: 40px;
  height: 38px;
  z-index: 1;
}

.password-visibility-toggle.password-visible {
  background-image: url("../img/eye.svg");
}

.action-links {
  margin-top: 80px;
  text-align: center;
  box-sizing: border-box;
}

.action-links .btn {
  box-sizing: border-box;
  text-decoration: none;
  margin-bottom: 18px;
  border: 1px solid #383838;
}

.action-links .btn:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body {
    display: block;
    min-height: auto;
  }

  h1 {
    font-size: 32px;
    font-weight: normal;
    text-align: left;
    color: #323232;
    margin-top: 0;
  }

  .top-links-wrapper {
    display: none;
  }

  .card-pf {
    width: auto;
    margin: 14px;
    min-width: auto;
    min-height: auto;
    max-width: none;
    max-height: none;
    box-shadow: 8px 14px 32px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    background: #fff;
  }

  .intro {
    display: none;
  }

  .main {
    width: 100%;
  }

  .login-pf-page {
    max-width: none;
  }

  .reset-password-buttons {
    padding: 0 14px;
    margin-top: 24px;
  }

  .bottom-link-wrapper .back-to-gelato-com-api-link-wrapper {
    display: block;
    position: static;
    margin-top: 40px;
  }
}
