
#form {
  background-color: var(--clr-primary-container);
  color: var(--clr-on-primary-container);
  padding: var(--pad-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 300px;
  flex-grow: 1;
  gap: 1em;
  justify-content: center;
  text-align: center;
}
  
.panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 80vh;
}

.quote-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
}

.panel > div {
  flex-grow: 1;
}

#login {
    color: var(--clr-accent);
    text-align: center;
}

/*This makes the form hidden at the start (the first section is made visible by the currentStep function)*/
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*This makes the help messages hidden at the start (they appear if a mistake is found in the validate_form function)*/
.gen_message, .e_message, .e_message2, .p_message, .p_message2 {
  text-align:center;
  display: none;
  color: var(--clr-on-red);
  border-radius: var(--bdr-rad);
  padding: var(--pad-400);
  margin: var(--spc-200);
  margin-bottom: var(--spc-400);
  background: var(--clr-theme-red);
}

/*This changes the Previous button's color*/
#previous {
  background-color: #bbbbbb;
}

/* This sets up the question mark as the pop up with details about the password requirements */
.popup {
  display: inline-block;
  cursor: pointer;
}

/* This formats the popup */
.popup .popuptext {
  display: none;
  width: 20vh;
  background-color: #555;
  color: white;
  text-align: center;
  border-radius: var(--bdr-rad);
  padding: var(--pad-400);
  position: absolute;
  z-index: 1;
}

/* This helps toggle the popup between visible and invisible (it works with the popupAppear method) */
.popup .show {
  display: unset;
}

.quote-block {
  padding: var(--pad-400);
  max-width: 300px;
}

.quote {
  padding: var(--pad-600);
  border-radius: var(--bdr-rad-600);
  display: flex;
  flex-direction: column;
}
.quote span.attribution {
    align-self: end;
}
.quote span.quote-text {
    padding-bottom: var(--pad-200);
}

.quote.quote1 {
  background: var(--clr-theme-red);
  color: var(--clr-on-red);
}
.quote.quote2 {
  background: var(--clr-theme-blue);
  color: var(--clr-on-blue);
}
.quote.quote3 {
  background: var(--clr-theme-yellow);
  color: var(--clr-on-yellow);
}
.quote.quote4 {
  background: var(--clr-theme-green);
  color: var(--clr-on-green);
}

/* Change the layout to left-right if we have enough space. */
@media (min-width: 600px){
  .panel {
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      align-items: stretch;
      min-height: 80vh;
  }
  .quote-group {
      flex-direction: column;
  }
  #form {
    border-radius: var(--bdr-rad);
  }
}
  
  /*This adds formatting to the bottom text linking to the login page*/
  #login {
      color: white;
      text-align: center;
  }
  
  /*This makes each input form a bit bigger and have circular text boxes*/
  input, select {
    padding: 10px;
    width: 100%;
    font-size: 18px;
    border-radius: 18px;
    box-sizing: border-box;

  }
  
  /*This makes the form hidden at the start (the first section is made visible by the currentStep function)*/
  .tab {
    display: none;
  }
  
  /*This makes the help messages hidden at the start (they appear if a mistake is found in the validate_form function)*/
  .gen_message, .e_message, .e_message2, .p_message, .p_message2, .username_message {
    text-align:center;
    display: none;
    color: #ffdddd;
  }
  
  /*This changes the Continue/Submit button formatting*/
  button {
    background-color: #64bbeb;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 18px;
  }
  
  .fa-eye {
    position: absolute; 
    right: 8px; 
    top: 50%; 
    transform: translateY(-50%);
    color: var(--clr-secondary-container);
}

#password, #c_password {
    padding-right: 40px;
}

h1 {
  text-align:center;
  font-size: var(--fs-500);
}

.password-rules li.invalid {
    color: var(--clr-theme-red);
}
.password-rules li.valid {
    color: var(--clr-on-green);
    font-weight: bold;
}

.password-rules li::marker {
    content: '\f0c8';
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.password-rules li.valid::marker {
    content: '\f14a';
}

.password-rules {
    background-color: var(--clr-surface);
    color: var(--clr-on-surface);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: var(--bdr-rad);
    padding: 0.5em;
}

.password-rules span {
    padding-left: 0.5em;
}

.password-rules p {
    font-size: var(--fs-300);
}

.password-rules ul {
    text-align: left;
    padding-inline-start: 1.5em;
}

.password-rules ul li {
    font-size: var(--fs-300);
}
