/* Custom new SEDO layout content */

*, ::after, ::before {
  box-sizing: content-box;
}

body {
  font-family: "Source Sans Pro", sans-serif !important;
  background: linear-gradient(
    to bottom right,
    #005ca9 0%,
    #7ac3ff 100%
  );
  height: auto;
  min-height: 100vh;
}

.mdc-drawer-app-content {
  overflow: visible;
}

/* Remove double sized header, footer of some pages
    The !important is required because overwrites html style tag that we cant change
*/
#header-main-wrapper,
#footer-main-wrapper {
  flex-grow: 0 !important;
}

div#content {
  box-shadow: none;
}

#content {
  border: none;
  margin: 0 auto;
  max-width: 668px;
  display: block !important;
}

.main-title span {
  color: #005ca9;
  font-size: 40px;
  font-style: normal;
  font-weight: 300;
  text-align: left;
}

.label-span::after {
  margin-left: 1px;
  margin-right: 0px;
  content: "*";
}

.mdc-linear-progress {
  height: 5px;
  border-radius: 2px;
}

.mdc-linear-progress__bar-inner {
  border-radius: 2px;
  border-top: 6px solid;
  transition: all 0.2s linear;
}

.banner {
  box-shadow: none;
}

.banner-danger {
  border-color: #E32B2B;
  background: none;
}

.mdc-button:not(:disabled) {
  color: #005ca9;
}

.mdc-button--outline:not(:disabled) {
  background: none;
  border: none;
}

.mdc-button--outline:hover {
  text-decoration: underline;
}

/* Form and INPUT related CSS */
.sedo-input-wrapper {
  width: 100%;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
}

.sedo-input {
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.sedo-input input {
  border: 0;
  color: #4c4c4c;
  width: 80%;
  text-overflow: ellipsis;
  padding: 32px 15px 11px;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  border-radius: 4px;
  height: auto;
  width: 100%;
  appearance: none;
  outline: none;
}

.sedo-input .pwd {
  width: 80%;
}

.sedo-input label {
  color: #4c4c4c;
  position: absolute;
  top: 12px;
  padding-left: 16px;
  box-sizing: border-box;
  width: 100%;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 13px;
  z-index: 1;
}

.sedo-submit {
  background: #ffab00;
  color: #4c4c4c;
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  min-width: 128px;
  padding: 0 24px;
  text-align: center;
}

.sedo-submit:hover {
  cursor: pointer;
  filter: brightness(90%);
  transition: background-color 0.05s ease 0.01s;
}

.sedo-submit:disabled {
  filter: opacity(0.5);
  cursor: not-allowed;
}

.display-inline {
  display: flex;
  align-items: center;
  width: 128px;
}

.display-inline a {
  text-decoration: none;
}

.login-span {
  margin: auto;
  color: rgba(0, 0, 0, 0.87);
}

.language-list {
  display: flex;
  justify-content: center;
  padding: 0;
}

.language-item {
  display: block;
  padding: 5px;
  list-style: none;
  white-space: nowrap;
}

.language-item a {
  text-decoration: none;
  color: #fff;
}

#register-button a {
  font-weight: 700;
  text-decoration: none;
}

.form__registration-hint {
  display: inline-block;
}

#loginForm,
#reset {
  max-width: 636px;
  margin: 0 auto;
}

.login-section {
  border: none;
}

.login-register-buttons {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}

.login-error-message {
  margin-left: 10px;
}

#pmlinks {
  text-align: center;
}

#forgotPasswordLink,
.cancel-forgot-password {
  font-weight: 500;
  text-decoration: none;
}

#password-suggestions {
  animation-name: shoveFromAbove;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  background-color: #f5f5f5;
  border: none;
  border-radius: 4px;
  color: #4c4c4c;
  box-sizing: border-box;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
  width: 100%;
  transition: color 0.05s ease 0.01s;
}

.reset-password-container {
  padding: 32px;
}

.password-hint {
  align-items: center;
  align-content: center;
  display: flex;
  margin: 8px 0;
}

.password-hint i {
  line-height: 24px;
  height: 1rem;
  position: relative;
  width: 1rem;
  bottom: 5px;
}

.passed .mdi::before {
  color: white;
  background-color: #27954a;
  padding: 1px;
  border-radius: 50%;
}

.passed p {
  color: #27954a !important;
}

.password-hint p {
  margin: 0;
  margin-left: 10px;
  color: #4c4c4c;
  transition: color 0.05s ease 0.01s;
}

#verify-criteria-8-or-more,
#verify-criteria-upper-lower,
#verify-criteria-number {
  color: #4c4c4c;
  transform: scale(0.8);
}

#password-suggestions p {
  font-size: 13px;
}

#password-confirm-mismatch-msg {
  display: flex;
  align-items: center;
}

.footer-forgot-password {
  align-items: center;
}

.reveal-password {
  position: absolute;
  border: 2px solid #005ca9;
  border-radius: 4px;
  height: 29px;
  width: 29px;
  top: 20px;
  right: 20px;
}

.reveal-password i::before {
  font-size: 16px;
  color: #005ca9;
  transform: translateY(-15px) translateX(-7px);
}

.confirm-password {
  margin-bottom: 0;
}

/* Removes a lock logo before "forgot password" */
.mdi-lock-open {
  display: none;
}

/* Injected footer custom CSS  */
#back-to-top {
  display: none;
}

#footer-controls {
  top: 0;
}

#footer-bottom #footer-nav-meta #footer-main-wrapper.language-switch {
  padding-top: 0;
}

#footer-bottom-wrapper #footer-bottom #footer-controls {
  position: absolute;
}

#footer-bottom-wrapper #footer-bottom #footer-controls #langswitch {
  position: absolute;
  bottom: 30px;
  top: unset;
  z-index: 1;
}

#footer-bottom-wrapper #footer-bottom #footer-controls #langswitch ul {
  top: 50px;
  flex-direction: column-reverse;
  border: 1px solid #ececec;
}

#footer-bottom-wrapper #footer-bottom #footer-controls #langswitch ul::after {
  top: unset;
  bottom: 22px;
}

#footer-bottom-wrapper
  #footer-bottom
  #footer-controls
  #langswitch
  ul:hover
  li.act {
  border-bottom: 0;
  border-top: 0;
  border-radius: 5px;
}

/* Responsive */

@media (max-width: 1024px) {
  body #header-main-wrapper #header-items {
    padding-left: 10px;
  }
  .main-title {
    padding-top: 0px;
  }
  .login-register-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 24px;
  }
  #pmlinks {
    text-align: center;
  }
  .language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  #loginForm {
    max-width: 636px;
    margin: 0 0;
  }
}

@media screen and (max-width: 767.99px){
.login-section {
  padding: 2rem 2.5rem;
}
}
/* DarkMode */

.dark-mode {
  background: linear-gradient(
    to bottom right,
    #141e30 0%,
    #243b55 100%
  )
}

/* Custom CSS for the darkmode toggle */

#dark-mode-toggle {
  cursor: pointer;
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 60px;
  margin: 0;
  padding: 0;
}

#darkmode-toggle {
  display: none;
}

.slider {
  background-color: #4c4c4c;
  position: absolute;
  border-radius: 34px;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  width: 40px;
  height: 20px;
}

.slider::before {
  background-color: #fff;
  position: absolute;
  border-radius: 50%;
  content: "";
  height: 14px;
  width: 14px;
  top: calc(50% - 7px);
  left: 4px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sedo-checkbox-wrapper input[type="checkbox"]:checked + .slider {
  background-color: #f6fafe;
  height: 20px;
  width: 40px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sedo-checkbox-wrapper input[type="checkbox"]:checked + .slider::before {
  background-color: #32383d;
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  left: -3px;
  content: "";
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.the-sun::before {
  position: absolute;
  border-radius: 50%;
  content: "";
  height: 16px;
  width: 16px;
  top: 2px;
  left: 2px;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  background-image: url("../img/the-sun.svg");
  background-repeat: no-repeat;
  transform: scale(0.75);
  opacity: 0;
}

.the-moon::before {
  position: absolute;
  border-radius: 50%;
  content: "";
  height: 16px;
  width: 16px;
  top: 3px;
  left: 23px;
  background-image: url("../img/the-moon.svg");
  background-repeat: no-repeat;
  opacity: 1;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  transform: scale(0.75);
}

.sedo-checkbox-wrapper input[type="checkbox"]:checked ~ .the-moon::before {
  opacity: 0;
}

.sedo-checkbox-wrapper input[type="checkbox"]:checked ~ .the-sun::before {
  opacity: 1;
}

/* Custom CSS for every darkmode element */

.dark-mode .card {
  background-color: #454d54;
}

.dark-mode .main-title span {
  color: #fff;
}

.dark-mode .sedo-input-wrapper {
  background: #454d54;
}

.dark-mode .sedo-input label {
  color: #fff;
}

.dark-mode .sedo-input input {
  background: #454d54;
  color: #f6fafe;
}

.dark-mode input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #454d54 inset;
  -webkit-text-fill-color: #f6fafe;
}

.dark-mode .reveal-password {
  border-color: #7ac3ff;
}

.dark-mode .reveal-password i::before {
  color: #7ac3ff;
}

.dark-mode button span {
  color: #fff;
}

.dark-mode .sedo-submit span {
  color: #4c4c4c;
}

.dark-mode .banner-danger strong {
  color: #fff;
}

.dark-mode .mdc-button:not(:disabled) {
  color: #fff;
}

.dark-mode .progress-bar-danger .mdc-linear-progress__bar-inner {
  border-color: #e32b2b;
}

.dark-mode #password-suggestions {
  background-color: #32383d;
}

.dark-mode #password-suggestions strong {
  color: #fff;
}

.dark-mode .passed .mdi::before {
  color: white;
  background-color: #78ed9d;
}

.dark-mode .passed p {
  color: #78ed9d !important;
}

.dark-mode p {
  color: #fff;
}

.dark-mode a {
  color: #7ac3ff;
}

.dark-mode a span {
  color: #fff;
}

/* DarkMode responsive queries */

@media screen and (min-width: 1366px) {
  #dark-mode-toggle {
    right: calc(50% - 610px);
  }
}
