/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 2rem;
  --normal-font-size: 1rem;
  --small-font-size: .813rem;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body,
input,
select,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background-color: transparent;
  color: var(--white-color);
}

select option {
    color: var(--black-color);
}

select:focus {
    outline: none;
    border: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== LOGIN ===============*/
.login {
  position: relative;
  min-height: 100dvh; /* full dynamic viewport height on mobile */
  display: grid;
  align-items: start;
}
/* Move background to the page root so it covers full scrollable height */
html, body {
  min-height: 100%;
}
body {
  /* Base background color fallback */
  background-color: #000;
  /* Remove direct image w/ attachment fixed (causes white gaps on mobile scroll) */
  /* Layer handled by body::before pseudo element for consistent full-page coverage */
}
/* Persistent full-viewport background layer (covers scroll on mobile Safari/Chrome) */
body::before {
  content: "";
  position: fixed; /* fixed so it doesn't scroll leaving white areas */
  inset: 0;
  z-index: -1; /* behind all content */
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.35)),
    url("../img/bg3.c6677cc53d68.webp") center / cover no-repeat; /* relative path so ManifestStaticFilesStorage can rewrite */
  /* Avoid background-attachment: fixed (handled via fixed positioning) */
  will-change: transform; /* hint for smoother scrolling */
}
/* iOS Safari older versions viewport height fixes */
html { height: -webkit-fill-available; }
body { min-height: -webkit-fill-available; }
/* Modern dynamic viewport unit support */
@supports (height: 100svh) {
  .login { min-height: 100svh; }
}
/* Removed .login__bg <img>; background now handled by CSS */

.login__form {
  position: relative;
  margin-inline: 1.5rem;
  background-color: hsla(0, 0%, 47%, 0.3);
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding: 2.5rem 1rem;
  color: var(--white-color);
  border-radius: 1rem;
  backdrop-filter: blur(24px);
}

.login__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.25rem;
}

.title {
    text-align: center;
    font-size: var(--normal-font-size)
}

.drawed_person {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    margin-top: 3rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--black-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.login__inputs, 
.login__box {
  display: grid;
}

.login__inputs {
  row-gap: 1.25rem;
  margin-bottom: 1rem;
}

.login__box {
  grid-template-columns: 1fr max-content;
  column-gap: .75rem;
  align-items: center;
  border: 2px solid hsla(0, 0%, 100%, .7);
  padding-inline: 1.25rem;
  border-radius: 4rem;
  height: 3.5rem;
}

.error {
    /* background-color: red;
    color: var(--white-color);
    font-size: var(--normal-font-size);
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    margin-bottom: 1rem;
    width: 70%;
    border-width: 2px solid hsla(0, 0%, 100%, .7);
    padding-inline: 1.25rem;
    border-radius: 4rem;
    height: 3.5rem; */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 14rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: rgba(255, 0, 0, 0.6);
    /* border: 2px solid hsla(0, 0%, 100%, .7); */
    color: var(--white-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.login__input, 
.login__button {
  border: none;
  outline: none;
  height: 3.5rem;
}

.login__input {
  width: 100%;
  background: none;
  color: var(--white-color);
  padding-block: 1rem;
}

.login__input::placeholder {
  color: var(--white-color);
}

.login__box i {
  font-size: 1.25rem;
}

.login__check, 
.login__check-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login__check {
  margin-bottom: 1rem;
  font-size: var(--small-font-size);
}

.login__check-box {
  column-gap: .5rem;
}

.login__check-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--white-color);
}

.login__forgot {
  color: var(--white-color);
}

.login__forgot:hover {
  text-decoration: underline;
}

.login__button {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--white-color);
  border-radius: 4rem;
  color: var(--black-color);
  font-weight: 500;
  cursor: pointer;
}

.login__register {
  font-size: var(--small-font-size);
  text-align: center;
}

.login__register a {
  color: var(--white-color);
  font-weight: 500;
}

.login__register a:hover {
  text-decoration: underline;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
  .login {
    justify-content: center;
  }
  .login__form {
    width: 420px;
    padding-inline: 2.5rem;
  }
  .login__title {
    margin-bottom: 2rem;
  }
}