
#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;
}
  
.panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 80vh;
}

.login {
  display: flex;
  flex-direction: column;
}

.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: 500px;
  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);
  }
}

input {
  box-sizing: border-box;
}

.fa-eye {
    position: absolute; 
    right: 8px; 
    top: 50%; 
    transform: translateY(-50%);
    color: var(--clr-secondary-container);
}

#password {
    padding-right: 40px;
}