/* login.css serves the default, legacy, and upgrade affiliate templates */
@import url(https://storage.googleapis.com/rm-fonts/v2/noto/light/index.css);
@import url(https://storage.googleapis.com/rm-fonts/v2/noto/regular/index.css);
@import url(https://storage.googleapis.com/rm-fonts/v2/noto/medium/index.css);
@import url(https://storage.googleapis.com/rm-fonts/v2/noto/semibold/index.css);
@import url(https://storage.googleapis.com/rm-fonts/v2/noto/bold/index.css);

@font-face {
  font-family: "PatternFlyIcons-webfont";
  src: url("../fonts/PatternFlyIcons-webfont.eot");
  src: url("../fonts/PatternFlyIcons-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/PatternFlyIcons-webfont.ttf") format("truetype"), url("../fonts/PatternFlyIcons-webfont.woff") format("woff"), url("../fonts/PatternFlyIcons-webfont.svg#PatternFlyIcons-webfont") format("svg");
  font-weight: normal;
  font-style: normal;
}
[class^="pficon-"],
[class*=" pficon-"] {
  display: inline-block;
  font-family: "PatternFlyIcons-webfont";
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  line-height: 1;
  speak: none;
  text-transform: none;
  /* Better Font Rendering =========== */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  height: 100%;
  margin: 0;
  font-family: Noto Sans, sans-serif;
  line-height: 1.75;
  font-weight: 300;
  height: 100vh;
  overflow-y: hidden;
}

#responsive-panel {
  display: none;
}

#login {
  display: flex;
  min-height: 100%;
  height: 100vh;
  background-image: radial-gradient(circle at top right, #c85486 0%, #8c2c99 47%, #6759b8 100%) !important;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#center-panel {
  width: 353px;
  min-height: 300px;
  background: white;
  border-radius: 3px;
  margin: auto;
  padding: 1.5rem;
}

#center-panel p.instruction {
  font-size: 0.8em;
  text-align: center;
}

#center-panel .logo-area {
  text-align: center;
  width: 100%;
  padding-bottom: 1rem;
  height: 72px;
}

#center-panel .logo-area > img {
  width: 100%;
}

#center-panel .info, #center-panel .error {
  padding: 1rem;
  line-height: 1rem;
  font-weight: 300;
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

#center-panel .info {
  background-color: #edf2fc;
  color: #123c90;
}

#center-panel .info a, #center-panel a {
  text-decoration: none;
  color: #7141d8;
}

#center-panel .login-input-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
}
#center-panel .Icon {
  color: #6D46D5;
  margin-top: 2px;
}

#center-panel .super-text {
  color: #6D46D5;
  font-size: 0.6rem;
  margin-top: 0.3rem;
}

#center-panel .login-input, #center-panel .password-input {
  border-color: grey;
  width: 100%;
  height: 1.5rem;
  margin-top: 0;
  font-size: 0.8rem;
}

#center-panel .login-button-container {
  clear: both;
  margin-top: 4rem;
}

#center-panel .login-button {
  width: 100%;
}

#center-panel .login-button-container .update-button {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  clear: both;
  margin-top: 0.5rem;
  margin-bottom: -1rem;
}

#center-panel .empty-input-error {
  border: 1px solid #d73955;
}

#center-panel .float-right {
  float: right;
}

#center-panel .m0 {
  margin: 0;
}

#center-panel .heading {
  color: rgb(90,107,116);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 300;
}

#center-panel .body-text {
  font-size: 0.8rem;
  color: #596b74;
  font-family: Noto Sans, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 1rem;
}


#center-panel .update-pw-ui .password-reqs {
  margin-top: 0px;
}

#center-panel .update-pw-ui .password-reqs p {
  display: inline-block;
  vertical-align: -1px;
  margin: 0 0 0 0.5rem;
  font-size: 0.8rem;
}

#center-panel .update-pw-ui .password-reqs .Icon.inactive {
  color: #bbc7cd;
}

#center-panel .update-pw-ui .password-reqs .Icon.active {
  color: #8bca2f;
}

#center-panel .update-pw-ui .form-group {
  margin-top: 1.5rem;
}

/* keycloak alert boxes */
.alert {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-family: Noto Sans, sans-serif;
  line-height: 1.5;
  border: 1px solid;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
}

.alert > .pficon {
  position: initial;
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  fill: currentColor;
  flex-shrink: 0;
  font-size: 1.5em;
  margin-right: 10px;
}

.alert-error, .alert-warning {
  color: #b5253e;
  background-color: #f9eef2;
}

.alert-success {
  color: #363636;
  border-color: #3f9c35;
  background-color: #efffed;
}

.alert-warning {
  color: #596b74;
  border-color: #ffa002;
}

.alert-error {
  border-color: #b5253e;
}

.alert .kc-feedback-text {
  flex-grow: 1;
  margin-bottom: -0.1rem;
}

.pficon-ok:before {
  color: #3f9c35;
  content: "\e602";
}

.pficon-warning-triangle-o:before {
  color: #ec7a08;
  content: "\e913";
}

.pficon-error-circle-o:before {
  color: #b5253e;
  content: "\e926";
}


/* TODO : clean up styles below as many are not used */
.upgrade-header {
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 2.5rem;
  font-size: 1.5rem;
}

.white-text {
  color: #ffffff;
}

.gray-text {
  color: gray;
}

.description {
  margin: 3rem 0;
  font-size: 0.9rem;
  text-align: justify;
}

.upgrade-link {
  margin: 0 auto;
  width: 60%;
  text-align: center;
}

.upgrade-link:hover {
  cursor: pointer;
}

.upgrade-acc-link {
  margin-top: 1rem;
  border: 1px solid #F1F6FE;
  border-radius: 5px;
  padding: 0.25rem 0rem;
  font-size: 0.9rem;
}

.upgrade-acc-link a {
  text-decoration: none;
}

.login-keycloak-link {
  margin-top: .5rem;
  font-size: .75rem;
}

.login-keycloak-link a {
  text-decoration: none;
}

.help-link {
  text-align: center;
  margin-top: .25rem;
  line-height: 1.25rem;
  font-size: .75rem;
}

.help-link a {
  color: white;
  text-decoration: none;
}

.help-link a:hover {
  cursor: pointer;
}

#right-panel {
  /* TODO : remove display none and all of these styles when layout switches */
  display: none;
  float: right;
  width: 50%;
  background-color: white;
  height: 100vh;
  overflow-y: scroll;
  padding: 6.9rem 12rem 2rem 8rem;
}

.login-header-small {
  color: rgb(90,107,116);
  font-size: 0.8rem;
  margin-top: -0.6rem;
}

.error-box {
  background-color: #ffcccc;
  border: 1px solid #db4c4c;
  border-radius: 5px;
  margin: 1rem 0;
  padding: 1rem;
}

.error-text {
  font-size: 0.7rem;
  color: #db4c4c;
  display: flex;
  margin-top: 0.1rem;
}

.username-input-error {
  margin-top: -1.4rem;
}

.password-input-error {
  display: inline-flex;
}

.login-input, .password-input {
  display: block;
  width: 100%;
  border: 1px solid #788f9c;
  border-radius: 4px;
  margin: 0.7rem 0 1.5rem;
  padding: .7rem;
  color: #596b74;
  font-size: 1rem;
}

.login-input.input-pw {
  margin-top: 1rem;
}

::placeholder {
  color: #bbbbbb;
  opacity: 1;
}

.back-to-login-link {
  float: right;
  margin-top: 1rem;
  margin-right: 1rem;
  color: #6D46D5;
}

.back-to-login-link a {
  text-decoration: none;
}

.submit-button {
  background: #7141d8;
  border-radius: 4px;
  border: none;
  color: white;
  font-size: 0.9rem;
}

.submit-button:hover {
  background: #4e23ab;
  cursor: pointer;
}

.remember-me-checkbox {
  float: left;
}

.remember-me {
  float: left;
  color: gray;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 400;
  margin-left: 3px;
}

.login-button {
  padding: 0.3rem 1.2rem;
}

.next-button {
  margin-top: 2rem;  
  padding: 0.25rem 2rem;
}

.submit-button:focus {
  outline: none;
}

.forgot {
  margin-top: -.5rem;
  margin-right: 1rem;
  padding: .4rem;
  padding-left: 0;
  color: #6D46D5;
  line-height: 1.1rem;
  font-size: 1rem;
}

.forgot-small {
  color: #6D46D5;
  font-size: .65rem;
  line-height: 1.5rem;
  float: right;
  clear: both;
}

.forgot-link {
  color: #6D46D5;
  text-decoration: none;
}

.forgot-link:hover {
  color: #4e23ab;
}

.upgraded-login {
  display: block;
  clear: both;
  margin-top: 5rem;
  text-align: center;
}

.full-line {
  border-bottom: 1px solid gray;
  display: block;
  margin-top: -13px;
  margin-bottom: 2rem;
}

.full-line-layover {
  display: inline-block;
  font-size: 0.9rem;
  background-color: white;
  padding: 0rem 0.25rem;
}

.upgraded-login-button {
  display: block;
  margin-top: 1rem;
  border: 1px solid #6D46D5;;
  border-radius: 5px;
  padding: 0.45rem 0rem;
  font-size: 0.9rem;
  color: #6D46D5;
  text-decoration: none;
  text-align-last: center;
  font-weight: 400;
}

.upgraded-login-button > a {
  color: currentColor;
  text-decoration: none;
}

.isDisabled {
  border: 1px solid gray;
  color: gray;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

.isDisabled > a {
  color: currentColor;
  display: inline-block;
  pointer-events: none;
  text-decoration: none;
}

.troubleshoot {
  display: block;
  margin-top: 2rem;
  color: #6D46D5;
  text-decoration: none;
  font-size: 0.7rem;
  text-align: center;
}

@media (max-width: 1200px) {

  #left-panel, #right-panel {
    padding: 7rem;
  }

  #right-panel, #left-panel.upgrade-template, #left-panel.default-template {
    padding-top: 10rem;
  }

  #right-panel.default-template {
    padding-top: 12rem;
  }

  .upgrade-link {
    width: 80%;
  }
}

@media (max-width: 1000px) {
  #left-panel, #right-panel {
    padding: 4rem;
  }

  #left-panel {
    padding-top: 8rem;
  }

  #left-panel.default-template, #right-panel {
    padding-top: 10rem;
  }

  #right-panel.default-template {
    padding-top: 12rem;
  }

  .upgrade-header {
    margin-top: 2rem;
  }

  .upgrade-link {
    width: 100%;
  }
}

@media (max-width: 700px) {

  #login { 
    background-color: white;
    background-image: none !important;
  }

  #center-panel {
    display: none;
  }

  #responsive-panel {
    display: block;
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    margin-bottom: 10%;
    border: 1px solid #aaa;
  }

  #responsive-header {
    background-image: radial-gradient(circle at top right, #c85486 0%, #8c2c99 47%, #6759b8 100%) !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;  
    height: 45px;
  }

  .small-logo {
    float: left;
    height: 25px;
    margin: 10px;
  }

  #login-panel, #upgrade-panel {
    margin: 1rem;
  }

 
  
  .login-form {
    width: auto;
    height: auto;
    margin: 0 auto;
  }

  .back-to-login-link {
    float: none;
    margin-top: .25rem;
    text-align: center;
    font-size: .75rem;
  }
  
  .submit-button {
    float: none;
    width: 100%;
  }
  
  .forgot-small {
    margin-top: .5rem;
    text-align: center;
  }

  .forgot-small.default-template {
    margin-bottom: 3rem;
  }

  .upgrade-header, .description {
    color: #788e9c;
    margin: 0;
  }

  .upgrade-header {
    margin-top: 3rem;
    margin-bottom: .75rem;
  }

  .description {
    margin-bottom: 2rem;
  }

  .description p {
    margin: .75rem 0;
  }
    
  .upgrade-link {
    color: #7141d8;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
  }
  
  .upgrade-link-small {
    margin-top: .25rem;
  }

  .upgrade-acc-link {
    border: 1px solid #7141d8;
    border-radius: 5px;
    font-size: 0.8rem;
  }

  .help-link {
    margin-bottom: 2.5rem;
  }
  
  .help-link a {
    color: #7141d8;
  }  
}

.email-error {
  margin-top: 10px;
  color: red !important;
}

.invisible {
  visibility: hidden;
  width: 0;
  height: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.Icon {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  fill: currentColor;
  flex-shrink: 0;
}

.pw-instructions {
  font-size: 14px;
  margin-top: 10px;
}

