html {
  font-size: 100%;
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;

  font-family:
    'Roboto',
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgb(220, 220, 220);
  background-color: rgb(20, 20, 20);
  background-image: url('img/pm-login-desktop_mini.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 auto;
  overflow: auto;
}

#main {
  display: flex;
  flex-direction: column;
  flex: none;
  overflow: auto;
  width: 28rem;
  min-height: 28rem;
  padding: 3rem;
  box-sizing: border-box;
  border-radius: 0.875rem;
  background-color: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(10px);
}

#footer {
  background-color: rgb(20, 20, 20);
  color: rgb(170, 170, 170);
  align-self: stretch;
  font-size: 0.6875rem;
  line-height: 3rem;
  flex: 0 0 3rem;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  column-gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgb(70, 70, 70);
}

#footer > a,
#footer > span {
  white-space: nowrap;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

#main.signin {
  align-items: center;
  justify-content: center;
}

#main.signin #headline {
  font-size: 2.2rem;
  justify-content: space-between;
  margin-bottom: 3rem;
  width: 16rem;
  user-select: none;
}

#main.signin button {
  width: 100%;
}

#headline {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: rgb(255, 255, 255);
}

#icon {
  width: 48px;
}

#main form {
  width: 16rem;
  margin-bottom: 2rem;
  align-self: center;
}

#main.signin form .label {
  text-align: center;
}

#main form .message {
  font-size: 0.875rem;
}

.error {
  color: #cc3232;
}

#main form .message.success {
  color: rgb(0, 204, 0);
}

#main form input {
  display: block;
  width: 100%;
  outline: none;
  font-size: 0.875rem;
  padding: 0.5rem;
  margin: 0.875rem 0;
  box-sizing: border-box;
  background: rgb(20, 20, 20);
  border: 1px solid rgb(70, 70, 70);
  border-radius: 5px;
  color: rgb(255, 255, 255);
  transition: border-color 0.5s ease-out;
}

#main form input:focus {
  border-color: rgb(255, 255, 255);
}

#main a {
  font-size: 0.8125rem;
}

a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

p {
  line-height: 1.4;
}

.content p,
.content .disclaimer {
  font-size: 0.875rem;
}

.content h3 {
  font-size: 1rem;
  color: rgb(255, 255, 255);
  font-weight: 400;
}

.hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.6875rem;
  margin-bottom: 1rem;
}

.hint:before {
  content: '* ';
}

input,
button {
  text-rendering: auto;
  color: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  margin: 0em 0em 0em 0em;
  font: 13.3333px Arial;
}

input {
  outline: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  outline-color: transparent;
  outline-style: none;
  font-family: 'Roboto', sans-serif;
}

button {
  font-family: 'Roboto', sans-serif;
  border: none;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;
  box-sizing: border-box;
  background-color: rgb(181, 52, 21);
  color: rgb(255, 255, 255);
  display: block;
  border-radius: 5px;
  margin: 2rem 0 0;
  padding: 0.5rem 2rem;
  font-size: 0.875rem;
}

button:hover {
  background-color: rgb(223, 62, 23);
}

#strength {
  display: none;
  width: 100%;
  height: 22px;
  border-radius: 5px;
  box-sizing: border-box;
  border: 1px solid rgb(20, 20, 20);
  overflow: hidden;
  background-color: rgb(20, 20, 20);
  margin: 0.875rem 0;
  position: relative;
}

#strength[class*='score-'] {
  display: block;
}

#strengthLabel {
  position: absolute;
  left: -1px;
  top: -1px;
  height: 22px;
  line-height: 22px;
  font-size: 0.75rem;
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

#strength > div.scale {
  height: 100%;
  width: 0%;
  transition:
    width 0.2s ease-out,
    color 0.2s ease-out;
}

#strength.score-1 > div.scale {
  width: 25%;
  background-color: #cc3232;
}

#strength.score-2 > div.scale {
  width: 50%;
  background-color: #db7b2b;
}

#strength.score-3 > div.scale {
  width: 75%;
  background-color: #e7b416;
}

#strength.score-3 > #strengthLabel,
#strength.score-4 > #strengthLabel {
  color: rgba(0, 0, 0, 0.5);
}

#strength.score-4 > div.scale {
  width: 100%;
  background-color: #99c140;
}

@media only screen and (max-width: 767px) {
  #main {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    padding: 2rem;
  }

  #main.signin {
    padding: 1rem;
  }
}

@media only screen and (max-width: 640px) {
  #footer {
    padding: 0.5rem 1rem;
    line-height: 1.5rem;
    flex: 0 0 auto;
  }
}

@media only screen and (max-width: 500px),
  @media only screen and (max-height: 560px) {
  html {
    font-size: 110%;
  }

  #footer {
    justify-content: flex-start;
  }
}

@media only screen and (max-height: 560px) {
  #main {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    padding: 1rem 2rem;
  }

  #main.signin #headline,
  #headline {
    margin-bottom: 1rem;
  }

  #main form {
    margin-bottom: 1rem;
  }
}
