/* General */

:root {
  --body-text-color: #000;
}

/* Screen reader only - hides content visually but keeps it accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --body-text-color: #fff;
  }
}

body {
  color: var(--body-text-color);
  font-size: 18px;
  min-width: 320px;
}

ul {
  margin-left: 20px;
}

ul > ul {
  margin: 0 20px;
  font-size: 1em;
}

ul > li {
  margin-bottom: 0;
}

.image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 25px 0;
}

.image-container h4 {
  margin: 0;
}

.image-container img {
  display: block;
  margin: auto;
  width: 100%;
}

.text-center {
  text-align: center !important;
}

.neutral-link {
  color: inherit;
  text-decoration: none;
}

.header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

/* Home */

img#logo-image {
  max-width: 100px;
  margin: 20px auto;
  display: block;
}

/* Auth forms */

.authForm {
  margin: auto;
  max-width: 350px;
}

#message {
  margin-bottom: 10px;
}

.error {
  color: red;
  font-size: 0.9em;
}

.password-hint {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
  display: none;
}

.password-strength {
  margin: 10px auto;
}

.password-strength div {
  height: 5px;
  border-radius: 4px;
}

.weak {
  width: 33%;
  background-color: red;
}

.medium {
  width: 66%;
  background-color: orange;
}

.strong {
  width: 100%;
  background-color: green;
}

/* Larger than phone screen */
@media (min-width: 60rem) {
  .image-container {
    margin: 25px 0;
  }

  .image-container img {
    width: 60%;
  }
}
