body,
html {
  height: 100dvh;
}

main {
  height: 100dvh;
}

/*** Login ***/
#login-bg-video {
  position: fixed;
  /* right: 0;
  bottom: 0;
  min-height: 100%;
  height: 100%; */
}

#login-cover {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.3);
  height: 100%;
  width: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: space-around;
  padding: 0px 30px;
}

#login-logo-header {
  /*max-width: 150px;*/
  width: 60%;
  /* margin-top: 100px; */
  /*filter: invert(1);*/
}

#login-game-summary {
  color: white;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

#login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login-div-input {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#login-div-input img {
  display: none;
  position: absolute;
  right: 12px;
  width: 18px;
}

#login-form #login-div-input input {
  width: -webkit-fill-available;
  padding: 12px;
  font-family: Lato;
  color: black;
  background-color: white;
  border: 0;
  border-radius: 10px;
  box-shadow: 0px 1px 4px 0px #00000040;
  padding-left: 42px; /* Space for the icon */
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 24px 24px;
}

input:focus-visible {
  outline: var(--main-color) auto 1px;
}

#login-input-email {
  background-image: url("../Resources/login/ic_email.png");
}

#login-input-password {
  background-image: url("../Resources/login/ic_pwd.png");
}

#login-forgot-password {
  color: white;
  font-style: italic;
  font-size: 14px;
  text-align: end;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 14px;
  text-decoration: underline;
}

#login-error {
  display: none;
  color: white;
  font-weight: 800;
  width: 100%;
  margin-bottom: 6px;
}

#login-signup-button {
  color: white;
  font-size: 14px;
}

#login-signup-button b {
  text-decoration: underline;
}

button {
  width: 100%;
  padding: 10px 32px;
  font-family: Lato;
  font-weight: 600;
  background: var(--main-color);
  color: white;
  border: 0;
  border-radius: 10px;
  box-shadow: 0px 1px 4px 0px #00000040;
  margin-bottom: 12px;
  cursor: pointer;
}

#login-logo-identify {
  width: 129px;
}

#login-footer {
  display: flex;
  gap: 25px;
  /* margin-bottom: 70px; */
}

.login-footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-footer-column p {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-footer-column img {
  width: 104px;
}

/*** SignUp ***/
#signup-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100dvh;
  display: none;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.4);
  padding: 0px 15px;
}

#signup-back {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 35px;
  height: 35px;
  z-index: 1;
}

.signup-dialog {
  display: none;
  padding: 30px 15px 30px 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  margin: 0px 10px;
  position: absolute;
  max-height: 80%;
  overflow: auto;
}

.signup-dialog input:not([type="checkbox"]),
.signup-dialog select {
  width: -webkit-fill-available;
  height: 46px;
  padding-left: 48px;
  border-radius: 10px;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
  border: 0;
  margin-bottom: 14px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 24px 24px;
}

.signup-dialog-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.signup-dialog-label {
  font-size: 14px;
  margin-bottom: 6px;
}

.signup-dialog-button {
  margin-top: 26px;
}

#signup-name-input {
  background-image: url("../Resources/login/ic_text.png");
}

#signup-lastname-input {
  background-image: url("../Resources/login/ic_text.png");
}

#signup-email-input {
  background-image: url("../Resources/login/ic_signup_email.png");
}

#signup-password-input {
  background-image: url("../Resources/login/ic_pwd.png");
}

#signup-repeat-password-input {
  background-image: url("../Resources/login/ic_pwd.png");
}

#signup-policy-label a,
#signup-policy-label-identify a {
  color: var(--main-color);
}

#signup-dialog-country-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

#signup-dialog-country-container img {
  position: absolute;
  right: 10px;
  width: 24px;
}

#signup-country-input {
  appearance: none;
  background-image: url("../Resources/login/ic_country.png");
  margin-bottom: 0;
}

#signup-companion-options {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 14px;
}

.signup-companion-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  padding: 9px 6px 9px 6px;
  box-shadow: 0px 1px 4px 0px #00000040;
  flex: 1;
  border: 2px solid transparent;
}

.signup-companion-option-selected {
  border: 2px solid var(--main-color);
}

.signup-companion-option img {
  height: 40px;
  margin-bottom: 4px;
}

.signup-companion-option p {
  text-align: center;
  font-size: 14px;
}

#signup-motivation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 10px 10px;
}

.signup-motivation-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  padding: 9px 6px 9px 6px;
  box-shadow: 0px 1px 4px 0px #00000040;
  border: 2px solid transparent;
}

.signup-motivation-option-selected {
  border: 2px solid var(--main-color);
}

.signup-motivation-option img {
  height: 45px;
  margin-bottom: 4px;
}

.signup-motivation-option p {
  text-align: center;
  font-size: 14px;
}

/*** Dialog messages ***/
#msg-dialog-forgot-password .msg-dialog-img {
  width: 150px;
}

#forgot-password-email-input {
  width: -webkit-fill-available;
  height: 46px;
  padding-left: 48px;
  border-radius: 10px;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
  border: 0;
  margin-bottom: 14px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 24px 24px;
  background-image: url("../Resources/login/ic_signup_email.png");
}

#button-input-forgot-password {
  background: var(--main-color);
  color: white;
  border: 1px solid var(--main-color);
  margin-bottom: 0px;
}

/* Media query for screens more than 1000px wide */
@media screen and (min-width: 1001px) {
  /* Login */
  #login-form {
    width: 40%;
  }

  #login-logo-header {
    width: 246px;
  }
}
