html {
  margin: 0;
  padding: 0;
  font-size: 53.125%;
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 1.8rem;
  line-height: 1.375;
  background: #ffffff;
  color: #505050;
  height: 100%;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 770px;
  margin: auto;
}

.logo {
  margin-top: 10px;
  margin-bottom: 7.5vh;
}

.logo-link {
  display: block;
  text-align: left;
  padding: 0 0 0 5rem;
  margin: 0;
}

.further-logo-long {
  display: block;
  visibility: visible;
  margin: 0 auto;
}

.further-logo-short {
  display: none;
}

#registration {
  overflow-y: auto;
}

.page-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  display: block;
  margin: 0 0 3rem;
  color: #505050;
}

.l-flex {
  display: flex;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.flex-box {
  padding: 0 4rem;
  position: relative;
  box-sizing: border-box;
}

.underlined:after {
  content: "";
  border-top: 1px solid #c9c9c9;
  display: block;
  max-width: 64rem;
  margin: 4rem auto 2rem auto;
}

.login-section {
  max-width: 64rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.signup-section {
  max-width: 64rem;
  height: 100%;
  margin: 0 auto;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.signup-section .flex-container .form-group {
  width: 48%;
}

.signup-section .flex-container .form-group.email,
.signup-section .flex-container .form-group.username {
  width: 99%;
}

.signup-section .form-group.left-col {
  padding-right: 2rem;
}

.form-group {
  margin: 0 0 1.5rem;
}

.form-label {
  color: #505050;
  font-size: 1.6rem;
  line-height: 1.375;
  display: block;
  margin: 0 0 0.5rem;
  padding: 0 0.5rem;
}

.form-control {
  background-image: url(../img/input-mask.svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  color: #505050;
  /* padding: 0.5rem 2rem; */
  transition: border ease-in-out 0.2s;
  width: 100%;
  font-size: 2rem;
  line-height: 2;
}

.form-footer {
  -webkit-box-align: center;
  align-items: center;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  margin-top: 2rem;
}

.form-footer .form-button {
  color: #00b2a2;
  background: url(../img/button-mask.svg) no-repeat;
  background-size: 100% 100%;
  padding: 0.5rem 4rem;
}

.form-footer .form-button:hover {
  background: url(../img/button-hover.svg) no-repeat;
}

.form-button {
  background: url(../img/button-hover.svg) no-repeat;
  background-size: 100% 100%;
  border: none;
  text-align: center;
  color: #505050;
  padding: 0.5rem 1rem;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.8;
  display: block;
  box-sizing: border-box;
  text-decoration: none;
}

.form-button:disabled {
  opacity: 0.5;
  background: url(../img/button-mask.svg) no-repeat;
}

.form-button:not(:disabled) {
  cursor: pointer;
}

.form-button.full-width {
  width: 100%;
}

.form-link {
  color: #505050;
  font-size: 1.6rem;
  line-height: 1.375;
  display: block;
  margin: 0 2rem 1rem;
  text-decoration: none;
}

.register-section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
}

.social-button {
  height: 41px;
  width: 225px;
}

.social-button.google {
  background: url(../img/google_button.svg) no-repeat;
  background-size: cover;
  background-position: center;
}

.social-button.microsoft {
  background: url(../img/microsoft_button.svg) no-repeat;
  background-size: cover;
  background-position: center;
  width: 210px;
  height: 39px;
}

.social-button.clever {
  background: url(../img/clever_button.svg) no-repeat;
  background-size: cover;
  background-position: center;
}

/* ClassLink is a generic OIDC provider so its providerId class is "oidc";
   target the alias-based id set in login.ftl instead */
#zocial-classlink {
  background: url(../img/classlink_button.svg) no-repeat;
  background-size: cover;
  background-position: center;
}

.options-link {
  text-align: center;
  margin-top: 4rem;
}

.options-link a {
  color: #00b2a2;
  text-decoration: none;
}

.error-svg-container {
  padding: 0 2rem;
  width: 100%;
  margin: 0 auto 4rem;
}

.error-svg {
  margin: 0 auto;
  width: 18rem;
  display: block;
}

.alert {
  margin: 0 0 3rem;
  font-size: 1.6rem;
  text-align: center;
}

.alert-error {
  color: red;
}

.alert-success {
  color: #00b2a2;
}

.alert-warning {
  color: #ee723e;
}

.hide {
  display: none;
}

.verify-email-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #505050;
  margin: 0 0 1rem;
}

.verify-email-subtitle {
  font-size: 2rem;
  font-weight: bold;
  color: #505050;
  margin: 3.5rem 0 0.5rem;
}

#kc-info {
  border-top: 1px solid #e0e0e0;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

#kc-info a {
  color: #505050;
  text-decoration: underline;
}

.errorMessageWrapper {
  text-align: center;
  margin-bottom: 20px;
}

.errorMessage {
  display: none;
  margin: auto;
  background-color: #be4b49;
  color: white;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(139, 3, 0, 0.75), 0 1px 10px rgba(0, 0, 0, 0.35);
  padding: 5px 18px;
  margin: 0 auto 5px auto;
  -webkit-mask-image: url(../img/list-item-mask.svg);
  mask-image: url(../img/list-item-mask.svg);
  mask-size: 100% 100%;
}

@media (max-width: 768px) {
  .signup-section, .login-section {
    max-width: 32rem;
  }

  .signup-section .flex-container {
    flex-direction: column;
  }

  .register-section {
    flex-direction: column;
    align-items: center;
  }

  .social-button.microsoft {
    width: 220px;
    height: 41px;
  }

  .signup-section .flex-container .form-group {
    width: 100%;
  }

  .logo {
    margin-bottom: 20px;
  }

  .logo-link {
    padding: 2rem;
    margin: 0 auto;
    width: 30rem;
  }

  .further-logo-long {
    display: none;
  }

  .further-logo-short {
    display: initial;
  }
}

/* Email verification card */
.verify-email-page .logo {
  display: none;
}

.verify-email-resent-banner {
  max-width: 60rem;
  margin: 0 auto 2rem;
  padding: 1.5rem 2.5rem;
  border: 1.5px solid #00b2a2;
  border-radius: 12px;
  background-color: rgba(0, 178, 162, 0.08);
  font-size: 1.8rem;
  color: #505050;
  text-align: center;
  box-sizing: border-box;
}

.verify-email-card {
  border: 1.5px solid #00b2a2;
  border-radius: 12px;
  padding: 3.5rem 3.5rem 4.5rem;
  max-width: 60rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.verify-email-card .logo-link {
  padding: 0;
  margin: 0;
}

.card-divider {
  border: none;
  border-top: 1.5px solid #00b2a2;
  margin: 2.5rem 0 3rem;
}

.card-footer {
  margin-top: 2.5rem;
  font-size: 1.8rem;
}

.card-footer a {
  color: #505050;
  text-decoration: underline;
}

.verify-email-card .instruction {
  font-size: 2rem;
}

/* any screen shorter than iPad mini landscape */
@media (max-height: 767px) {
  .logo {
    margin-bottom: 20px;
  }

  .logo-link {
    padding: 2rem;
    margin: 0 auto;
    width: 30rem;
  }

  .further-logo-long {
    display: none;
  }

  .further-logo-short {
    display: initial;
  }
}
