﻿body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body .footer {
}

.pageParent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  width: 100%;

  padding-bottom: 4em;
  background-color: transparent;
}

.pageContainer {
  display: flex;
  flex-direction: column;
  height: auto;
}

.loginRegisterSection, .passwordSetSection {
  margin-top: 1.5em;
}

.loginRegisterForms, .passwordSetForm {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  width: 100%;
  height: auto;
}

.pageParent > * {
  flex: 1 0 auto;
}

.loginRegisterNav {
  width: 50%;
  display: none;
  flex-direction: row;
  justify-content: center;
  transition: color 0.5s ease-in-out;
  align-self: center;
  font-size: 20px;
  margin-bottom: 1em;
}

.loginRegisterNavOption {
  border-bottom: 4px solid var(--secondary-brand-color-lighter, rgba(7, 122, 180, 0.3));
  transition: all 0.5s ease-in-out;
  transition-property: border-bottom, color;
  text-align: var(--heading-text-align, left);
  color: var(--heading-text-color, #000000);
  padding: 0 0 0.5em 0;
  width: 50%;
  text-align: center;
  font-size: 20px;
}

.loginRegisterNavOption:hover {
  cursor: pointer;
}

.pageContainer h2 {
    align-self: center;
    margin-bottom: 0.25em;
    white-space: nowrap;
    display: inline;
    width: 990px;
    transition: transform 1s ease-in-out;
    color: var(--page-heading-text-color, var(--heading-text-color));
    font-family: var(--page-heading-font-family, var(--heading-text-font-family));
    font-weight: var(--page-heading-font-weight, var(--heading-text-font-weight));
    font-style: var(--page-heading-font-style, var(--heading-text-font-style));
    text-transform: var(--page-heading-text-transform, var(--heading-text-transform));
    font-size: var(--page-heading-text-size, var(--heading-text-font-size));
    text-align: var(--page-heading-text-align, var(--heading-text-align));
    padding: 10px;
}

.loginRegisterFormsSection, .passwordSetFormSection {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-start;
  padding: 1em;
  width: 495px;
  transition: width;
  margin: 0;
}

.loginRegisterFormsSection {
  height: 28em;
}

.loginHeaderText {
    color: var(--primary-brand-color);
    font-family: var(--header-font-family);
    font-weight: var(--header-font-weight);
    font-style: var(--header-font-stylr);
}

#loginForm {
  border-top: 2px solid lightgray;
  border-left: 2px solid lightgray;
  border-bottom: 2px solid lightgray;
  transition: transform 1s ease-in-out;
}

#passwordSetForm {
  border: 2px solid lightgray;
  transition: transform 1s ease-in-out;
  min-height: 24em;
}

#registrationForm {
  border-top: 2px solid lightgray;
  border-right: 2px solid lightgray;
  border-bottom: 2px solid lightgray;
  transition: height 0.5s 0.5s ease-in-out;
  background-color: var(--primary-brand-color-lightest, rgba(7, 122, 180, 0.1));
  transition: transform 1s ease-in-out;
  min-height: 28em;
}

#registrationForm .row {
  margin-bottom: 0;
}

#backToLogin {
  color: var(--secondary-brand-color, #000000);
  opacity: 1;
  height: auto;
  font-weight: bold;
  margin: 0;
  cursor: pointer;
}

#registrationForm .errorMsg {
  display: none;
  color: red;
  text-align: right;
  margin: 0;
}

#loginForm .errorMsg {
  display: none;
  color: red;
  text-align: right;
  margin-bottom: 0;
}

#passwordSetForm .errorMsg {
  display: block;
  color: red;
  text-align: right;
  margin-bottom: 0;
}

#passwordSetForm .errorMsgCardHeader {
  display: block;
  color: red;
  text-align: var(--heading-text-align);
  margin-bottom: 0;
}

.loginRegisterFormsSection .formHeading, .passwordSetFormSection .formHeading {
  height: auto;
}

    .loginRegisterFormsSection .formHeading h3, .passwordSetFormSection .formHeading h3 {
        margin: 0 0 0.5em 0;
        height: auto;
        text-align: var(--heading-text-align, left);
        color: var(--heading-text-color, #000000);
        font-family: var(--heading-text-font-family, "Lato", Arial, sans-serif);
        font-weight: var(--heading-text-font-weight);
        font-style: var(--heading-text-font-style);
        text-transform: var(--heading-text-transform);
    }

.inputErrorCombo {
  display: flex;
  flex-direction: column;
  height: 20%;
}

.inputErrorCombo input {
  height: 75%;
}

/* Body styling selectors */
.loginRegisterFormsSection span,
.loginRegisterFormsSection a,
.loginRegisterFormsSection .txtNames,
.loginRegisterFormsSection .txtNames input,
#hiddenRegistrationContent,
.loginRegisterFormsSection input::placeholder {
  font-size: var(--body-text-font-size, 16px);
  text-align: var(--body-text-align, 16px);
}

.loginRegisterFormsSection input::placeholder {
  font-weight: 500;
  padding-left: 0;
}

#hiddenRegistrationContent #ddlhearabout {
  border: 2px solid gray;
  padding: 0 0 0 1em;
  border-radius: 2px;
  margin: 1em 0 0 0;
}

.loginRegisterFormsSection .OtherMessageWrap {
  display: none;
}

.loginRegisterFormsSection #btnLogin,
.loginRegisterFormsSection #btnRegister,
.passwordSetFormSection #password-submit {
    padding: 0 20px;
    background: var( --button-primary-background-color, linear-gradient(180deg, rgb(7, 122, 180) 0%, rgba(7, 122, 180, 0.7) 0%, rgb(7, 122, 180) 100%) 0% 0% no-repeat padding-box );
    border: var(--button-primary-border-width) solid var(--button-primary-border-color);
    height: 50px;
    color: var(--button-primary-text-color, #ffffff);
    font-size: var(--button-primary-font-size, 16px);
    font-family: var(--button-primary-font-family, "Lato", Arial, sans-serif);
    font-weight: var(--button-primary-font-weight);
    font-style: var(--button-primary-font-style);
    text-transform: var(--button-primary-text-transform);
    cursor: pointer;
    transition: none;
    border-radius: 2px;
    box-shadow: 0 3px 2px lightgray;
    bottom: 0;
}

    .loginRegisterFormsSection #btnLogin:hover,
    #btnRegister:hover {
        background: var(--button-primary-hover-background-color, rgb(7, 122, 180));
        border: var(--button-primary-hover-border-width, var(--button-primary-border-width, 1px)) solid var(--button-primary-hover-border-color, var(--button-primary-border-color, #000));
        color: var(--button-primary-hover-text-color, #ffffff);
        font-size: var(--button-primary-hover-font-size, var(--button-primary-font-size, 16px));
        font-family: var(--button-primary-hover-font-family, var(--button-primary-font-family));
        font-style: var(--button-primary-hover-font-style, var(--button-primary-font-style));
        font-weight: var(--button-primary-hover-font-weight, var(--button-primary-font-weight));
        text-transform: var(--button-primary-hover-text-transform);
        padding: 0px 20px;
    }

.loginRegisterFormsSection .sso-button {
    padding: 0px 20px;
    background: var( --button-secondary-background-color, #ffffff );
    border: var(--button-secondary-border-width, 2px) solid var(--button-secondary-border-color, var(--primary-brand-color));
    min-height: 40px;
    color: var(--button-secondary-text-color, var(--primary-brand-color));
    font-size: var(--button-primary-font-size, 16px);
    font-family: var(--button-secondary-font-family, "Lato", Arial, sans-serif);
    font-style: var(--button-secondary-font-style);
    font-weight: var(--button-secondary-font-weight);
    text-transform: var(--button-secondary-text-transform);
    transition: none;
    border-radius: 2px;
    margin-top: 15px;
    box-shadow: var(--button-secondary-box-shadow, none);
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .loginRegisterFormsSection .sso-button:hover {
        font-family: var(--button-secondary-hover-font-family, var(--button-secondary-font-family, "Lato", Arial, sans-serif));
        font-weight: var(--button-secondary-hover-font-weight, var(--button-secondary-font-weight));
        font-style: var(--button-secondary-hover-font-style, var(--button-secondary-font-style));
        font-size: var(--button-secondary-hover-font-size, var(--button-secondary-font-size, 16px));
        background: var(--button-secondary-hover-background-color, var(--button-secondary-background-color));
        color: var(--button-secondary-hover-text-color, var(--button-secondary-text-color));
        text-transform: var(--button-secondary-hover-text-transform, var(--button-secondary-text-transform));
        border: solid var(--button-secondary-hover-border-width, var(--button-secondary-border-width)) var(--button-secondary-hover-border-color, var(--button-secondary-border-color));
    }

.loginRegisterFormsSection span {
    height: auto;
    display: inline-block;
    white-space: initial;
    margin-bottom: 1em;
    color: var(--body-text-color, #000000);
    font-size: var(--body-text-font-size, 16px);
    text-align: var(--body-text-align, left);
    font-family: var(--body-text-font-family);
    font-weight: var(--body-text-font-weight);
    font-style: var(--body-text-font-style);
}

.loginRegisterFormsSection a, .passwordSetFormSection a {
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  color: var(--secondary-brand-color);
}

br {
  height: 12px;
}

.loginRegisterFormsSection .txtNames {
  display: flex;
  flex-direction: row;
  height: 25%;
  column-gap: 1em;
  align-items: stretch;
}

.loginRegisterFormsSection .txtNames input {
  display: flex;
  width: 50%;
  flex: 1 0 0;
  margin: 0;
  border-radius: 2.5%;
  border: 2px solid gray;
}

#registrationForm > #hiddenRegistration {
  flex: 1;
}

#hiddenRegistration {
  width: 100%;
  max-height: 0;
  margin: 0 0 0 0;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  overflow: hidden;
}

#hiddenRegistration.opened {
  overflow: visible;
}

#hiddenRegistrationContent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s 0.5s ease-in-out, max-height 0.5s ease-in-out, height 0.5s ease-in-out,
    opacity 0.5s 0.5s ease-in-out;
  opacity: 0;
  height: auto;
  max-height: 0;
  flex: 1 1 auto;
}

#regError {
  margin: 10px 0 !important;
}

@media only screen and (max-width: 990px) {
  .pageContainer h2 {
    display: none;
  }

  .loginRegisterFormsSection .formHeading h3 {
    display: none;
  }

  #loginForm {
    border: none;
  }

  #registrationForm {
    display: none;
    border: none;
  }

  .loginRegisterFormsSection #btnLogin,
  .loginRegisterFormsSection #btnRegister {
    font-size: 14px;
  }

  .loginRegisterNav {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    transition: color 0.5s ease-in-out;
    align-self: center;
    font-size: 20px;
    margin-bottom: 1em;
  }

  .loginRegisterNavOption:hover {
    color: var(--secondary-brand-color, #000000);
    border-bottom: 4px solid var(--secondary-brand-color, #000000);
  }
}
@media only screen and (max-width: 640px) {
  .inputErrorCombo {
    height: auto;
  }
  .inputErrorCombo input {
    flex-grow: 1;
  }

  .loginRegisterFormsSection .txtNames {
    height: 20%;
  }
  .loginRegisterFormsSection .txtNames input {
    width: 47%;
    height: 80%;
  }
}
