/**
 * Copyright 2022, Grant Richardson
 * License: GNU Affero General Public License v3.0 only
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
 */
:root{
  --errors-color: #ffe9cf;
  --placeholder_color: #6f6f6f;
  --page-content-width: 100%;
  --heading-width: 100%;
  --loginRegisterHeading_font-size: 0.8rem;
  --loginForm-width: 16rem;
  --fieldTextInput-width: 100%;
  --fieldTextInput_font-size: 0.95rem;
  --loginFormParagraph_font-size: 0.9rem;
  --loginRegisterErrors_font-size: 0.9rem;
}

@media screen and (min-width:375px){
  :root{
    --loginRegisterHeading_font-size: 0.9rem;
    --loginForm-width: 20rem;
    --fieldTextInput-width: 16rem;
  }
}

/* mobile breakpoint - going wider unwraps navbar links while keeping 'login' and 'register' right */
/* This same breakpoint value is also hardcoded in filesApp/style.css. Can't use variable in @media. */
@media screen and (min-width:758px){
  :root{
    --loginRegisterHeading_font-size: 1rem;
    --loginForm-width: 25rem;
    --fieldTextInput-width: 18rem;
    --fieldTextInput_font-size: 1.1rem;
    --loginFormParagraph_font-size: 1rem;
    --loginRegisterErrors_font-size: 0.97rem;
  }
}

.loginPageContent{
  max-width: var(--page-content-width);
  margin-left: auto;
  margin-right: auto;
}

.loginRegisterHeading{
  max-width: var(--loginForm-width);;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: var(--loginRegisterHeading_font-size);
}

.loginRegisterHeading--homepage{
  margin-top: 0.3rem;
  margin-bottom: 1.6rem;
  padding-left: 0.5rem;
  justify-items: center;
  font-size: var(--loginRegisterHeading_font-size);
}

.loginFormAndErrorArea{
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.loginForm{
  padding: 1.5rem;
  background-color: white;
  width: var(--loginForm-width);
  height: auto;
  overflow: auto;
  box-shadow: 0 1.2rem 1.2rem -1.25rem var(--box-shadow-color);
  margin: 0.9rem 0;
  border-radius: var(--border-radius);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.75rem;
  justify-content: center;
}

.registration--less-bottom-margin{
  margin-bottom: 0.5rem;
}

.registrationsDisabledMessage{
  padding: 0.65rem;
  margin-top: -0.2rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 0.5rem 1.2rem -1rem var(--box-shadow-color);
  border:solid var(--errors-color) 0.05rem;
  border-radius: var(--formFieldBlock__input_border-radius);
  background-color: var(--errors-color);
  font-size: 1.1rem;
}

.fieldTextInput{
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  font-size: var(--fieldTextInput_font-size);
  width: var(--fieldTextInput-width);
}

.captchaBlock{
  margin: 1.5rem 0 0.5rem;
}

.captchaLabel{
  margin: 0.5 0 -0.5rem;
}

#id_captcha_field_1{
  padding: 0.5rem 1rem;
  margin: 0 0.5rem 0 0.2rem;
  font-size: var(--fieldTextInput_font-size);
  width: 5.5rem;
  height: 2.25rem;
}

img.captcha{
  margin-top: 0.75rem;
  margin-bottom: -0.75rem; /* to lift id_captcha_field_1 */
}

input[type="text"].accountUpdateField, input[type="password"].accountUpdateField{
  border: none;
  padding: 0.5rem 0 0.5rem 0.75rem;
  font-size: var(--fieldTextInput_font-size);
  font-family: -apple-system, BlinkMacSystemFont, 'Courier New', sans-serif;
  width: 100%;
}

.loginButton{
  background-color: var(--primaryColor1);
  color: white;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  border-color: var(--primaryColor1);
  cursor:pointer;
  border: none;
}

.loginButton:hover{
  box-shadow: 0 1.2rem 1.2rem -1rem var(--box-shadow-color);
  transform: translate(0, -1px);
  transition: 0.5s;
}

.loginButton:active{
  box-shadow: none;
  transform: translate(0, 1px);
}

.loginButton--register{
  background-color: var(--primaryColor1);
}

.loginFormParagraph{
  padding-top: 0.5rem;
  font-size: var(--loginFormParagraph_font-size);
}

.accountAppHyperLinks{
  color: var(--primaryColor1); /* --primaryColor1 is set in filesApp/style.css */
  text-decoration: none;
}

.loginRegisterErrors{
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  background-color: var(--errors-color);
  box-shadow: 0 1.2rem 1.2rem -1.25rem var(--box-shadow-color);
  width:fit-content;
  height: auto;
  overflow: auto;
  justify-content: center;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: var(--loginRegisterErrors_font-size);
}

.loggedOutMessage{
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

.profileIcon{
  width: 20rem;
}

.profileDetailLine{
  line-height: 0.75rem !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.profileDetailLine--bold{
  font-weight: 600;
}

.groupCheckboxAndLabel{
  display: flex;
  align-items: center;
  margin: 0.4rem 0 0 -0.8rem;
}

.timezone_placeholder{
  color: var(--placeholder_color);
}

.adminSysInfo{
  text-align: center;
  margin-top: -5rem;
  color: var(--primaryColor3);
}

.adminSysInfoNoteContainer{
  text-align: left;
  margin-top: -4rem;
  margin-bottom: 1.2rem;
  color: var(--primaryColor4);
}

.adminSysInfoLine{
  line-height: 1.4rem;
}

.adminSysInfoCardLine{
  margin-top: 0.75rem;
  color: var(--primaryColor3);
  font-size: var(--hero__tagline_font-size);
}

.adminSysInfoCardLine--small-margin-top{
  margin-top: 0.25rem;
}

.adminSysInfoCardLine--large-margin-bottom{
  margin-bottom: 0.3rem;
}
