html, body {
  height: 100%;
}

/* Source Sans 3 Font Family */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #FBFBFB 0%, #F3F3F3 100%);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  color: #4F4F4F;
}

#outerContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.columns {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.column {
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
}

html {
  overflow: hidden;
}

#header {
  background-color: #055E6F;
  height: 55px;
  width: 100%;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.form-title {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  max-width: 295px;
}

.form-instructions {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  max-width: 295px;
  text-align: center;
}

.headline-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 33px;
  font-style: normal;
  font-weight: 300;
  line-height: 150%;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 0;
  width: 80%;
}

#description {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  margin: 30px;
  color: #4F4F4F;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  line-height: 22px;
}

#subHeader{
  font-size: 24px;
}

#header .logo {
  height: 19px;
  float: left;
  margin: 18px 0px 0px 30px;
}

#mainContentContainer {
  flex-grow: 0.5;
  display: flex;
  flex-direction: column;
  color: #1F1F1F;
  font-family: "Source Sans 3", sans-serif;
  gap: 16px;
}

#bwAccessLink {
  box-sizing: border-box;
  box-shadow: 0 0 32px 0 rgba(31, 31, 31, 0.25);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: white;
  width: 343px;
  height: 68px;
  margin: auto;
  margin-top: 0;
  padding: 16px 24px;
}

#bwAccessTextLabel {
  font-size: 14px;
  width: 113px;
  height: 21px;
  white-space: nowrap;
}

.bwAccessButton {
  cursor: pointer;
  background: #FFFFFF;
  font-weight: 400;
  text-align: center;
  color: #1A77BA;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-size: 13px;
  padding: 8px 16px;
  text-decoration: none;
}

#remember {
  display: flex;
  align-items: center;
}

#remember label {
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

#forgot {
  color: #1F1F1F;
  text-align: right;
  font-size: 14px;
}

#forgot a {
  color: #1F1F1F;
  font-weight: bold;
}

.outerFlexZone {
  flex-grow: 1;
}

#innerContainer {
  height: 100%;
}

.showhideouter {
  position: relative;
}

#showhide {
  width: 22px;
  position: absolute;
  right: 0;
  margin: 0 6px;
  cursor: pointer;
}

#showhide.visible {
  opacity: 33%;
}

.form-popup {
  margin: auto;
  margin-bottom: 0;
  max-width: 343px;
  box-shadow: 0 0 32px 0 rgba(31, 31, 31, 0.25);
  padding: 24px 24px 24px 24px;
  background-color: #FFFFFF;
  max-height: 517px;
  overflow: auto;
}

.form-popup .field {
  margin-top: 0;
}

.form-popup .field label {
  height: 21px;
  width: 295px;
  display: block;
  font-size: 14px;
}

.form-popup .label-title {
  padding-top: 20px;
  font-weight: bold;
  font-size: 22px;
  line-height: 33px;
}

.form-popup .label-field {
  font-weight: normal;
  font-size: 16px;
  line-height: 22px;
}

.form-popup input {
  width: 100%;
  height: 36px;
  margin-top: 4px;
  background: #FFFFFF;
  border: 0.5px solid #D1D1D1;
  outline: none;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 13px;
  line-height: 22px;
  font-family: 'Source Sans 3', sans-serif;
  color: #1F1F1F;
  padding: 4px;
}

.form-popup input::placeholder {
  color: #1F1F1F;
  opacity: 1;
}
.form-popup input[type="text"], .form-popup input[type="password"] {
  padding: 8px !important;
}

.form-popup input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 4px 0 0;
  border: 2px solid #1F1F1F;
  border-radius: 2px;
  background-color: #FFFFFF;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.form-popup input[type="checkbox"]:checked {
  background-color: rgba(18, 98, 155, 0.3);
  border-color: rgba(18, 98, 155, 1);
  position: relative;
}

/* Custom checkmark */
.form-popup input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 10px;
  border: solid rgba(18, 98, 155, 1);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bw-logo {
  width: 85.71%;
  height: 84px;
}

#bwBrands {
  margin: auto;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1440px) {
  .column {
    width: 41.67%;
  }

  .left-column {
    background: url("../images/login-background.svg") no-repeat center center;
    background-size: cover;
    width: 58.33%;
    flex-grow: 0;
    flex-shrink: 0;
  }
}

/* Hide tablet branding by default */
.small-device-branding {
  display: none;
}

/* Tablet styles */
@media (min-width: 744px) and (max-width: 1439px) {
  body {
    background: url("../images/login-background.svg") no-repeat center center;
    background-size: cover;
    overflow: scroll;
  }

  .left-column, #header {
    display: none;
  }

  #mainContentContainer {
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    gap: 16px;
    padding: 48px 72px;
    margin: auto;
  }

  /* Show and style tablet branding */
  .small-device-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 600px;
    margin-bottom: 24px;
  }

  .small-device-logo {
    width: 100%;
    height: auto;
  }

  .small-device-headline {
    font-size: 33px;
    font-weight: 300;
    line-height: 150%;
    color: #FFFFFF;
    text-align: center;
    max-width: 587px;
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
  }

  .form-popup {
    margin: 0 auto 0 auto;
  }

  .column {
    flex-basis: 100%;
  }
}

/* Mobile and small tablet styles and remove lower bound*/
@media (max-width: 743px) {  
  body {
    background: url("../images/login-background.svg") no-repeat center center;
    background-size: cover;
    overflow: scroll;
  }

  .left-column, #header {
    display: none;
  }

  /* Hide branding on mobile */
  #bwBrands {
    display: none;
  }

  #mainContentContainer {
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    gap: 16px;
    padding: 48px 16px;
    margin: auto;
  }

  .small-device-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 343px;
    margin-bottom: 24px;
  }

  .small-device-logo {
    width: 100%;
    height: auto;
  }

  .small-device-headline {
    font-size: 18px;
    font-weight: 300;
    line-height: 150%;
    color: #FFFFFF;
    text-align: center;
    max-width: 587px;
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
  }

  .form-popup {
    margin: 0 auto 0 auto;
  }

  .column {
    flex-basis: 100%;
  }
}

.form-popup .btn:disabled {
  background: rgba(18, 98, 155, 0.3) !important;
  cursor: no-drop;
}

.form-popup button {
  background: #1A77BA;
  border-radius: 4px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  font-style: normal;
  line-height: 150%;
  color: #FFFFFF;
  height: 36px;
  width: 295px;
  border: none;
  padding: 8px 16px;
}

.form-popup button:disabled {
  background: rgba(18, 98, 155, 0.3);
  cursor: default;
}

.form-popup button:enabled {
  background: #1A77BA;
  cursor: pointer;
}

.error-container {
  display: flex;
  align-items: center;
  height: 42px;
  width: 295px;
  margin-top: -8px;
}

.errors {
  background: #FFFFFF;
  color: #B02E0D;
  font-size: 14px;
  text-align: center;
  font-weight: 400;
  line-height: 150%;
  font-style: normal;
  width: 295px;
}

.mobile {
  display: none;
}
