/* https://www.joshwcomeau.com/css/custom-css-reset/ */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html, body {
  height: 100%;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
#root, #__next {
  isolation: isolate;
}
/* ---- */

body {
  font-family: "Ubuntu Mono";
  font-size: 18px;
}

a:link, a:visited, a:hover, a:active {
  color: #0000ff;
}

#main {
  margin: 0 auto;
  max-width: 50ch;
  padding: 1ch 2ch;
}
#main > div + div {
  margin-top: 1ch;
}

fieldset {
  min-width: 0;
  padding: 2ch;
  text-overflow: ellipsis;
}
legend {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0 1ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#email {
  margin-bottom: 1ch;
  width: 100%;
}

#passwordFlex {
  display: flex;
  margin-bottom: 1ch;
}

#passwordInput {
  flex-grow: 1;
}

#toggleVisibilityButton {
  flex-grow: 0;
  margin-left: 1ch;
  padding-left: 2ch;
  padding-right: 2ch;
}

#passwordStrengthFlex {
  display: flex;
  margin-bottom: 2ch;
  gap: 0.5ch;
}
#passwordStrengthFlex span {
  height: 1ch;
  flex-grow: 1;
}

#submitButton {
  background: darkgreen;
  border-radius: 2px;
  border: none;
  color: #f2f2f2;
  cursor: pointer;
  font-weight: bold;
  padding: 1ch;
  text-transform: uppercase;
  width: 100%;
}
#submitButton:disabled {
  background: #444;
  cursor: not-allowed;
  font-weight: normal;
}

#messages {
  margin-top: 2ch;
}
#messages ul {
  font-weight: bold;
  list-style-type: none;
  padding: 0;
}
#messages .error {
  color: #e05050;
}
#messages .success {
  color: #40b040;
}
