/* Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 500ms ease-in-out;
  border-radius: 10px;
  z-index: 2;
  background-image: url(/images/brooke-cagle-X4RJG4aNi8o-unsplash.jpg);
  min-height: 570px;
  width: 1200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal__form {
  position: absolute;
  max-width: 400px;
  margin: 20px;
  padding: 10px 25px 25px 25px;
  right: 0;
  background-color: var(--corQuinta);
}

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

.modal__body {
  padding-block-start: 10px;
}

/* Formulário -- Modal */
.modal__form h1 {
  color: var(--corSegunda);
  font-size: x-large;
}

.modal__form p {
  color: var(--corPrimeira);
}

.modal__form label {
  padding-inline-start: 14px;
  color: var(--corPrimeira);
}

.modal__button--submit {
  padding: 10px;
  margin-inline-start: 5px;
  border-radius: 9999px;
  border: none;
  background-color: var(--corSegunda);
  color: var(--corPrimeira);
  transition: 0.4s;
}

.modal__button--submit:hover {
  background-color: var(--corPrimeira);
  color: var(--corSegunda);
  transition: 0.4s;
  cursor: pointer;
}

.modal__button--close {
  color: var(--corSegunda);
  margin: 0px 0px 20px auto;
  border: none;
  outline: none;
  background: none;
  height: 20px;
  font-weight: bold;
  font-size: 1.25rem;
}

.modal__button--close:hover {
  color: var(--corPrimeira);
  cursor: pointer;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  border-radius: 9999px;
  background: #f1f1f1;
}

input[type="text"]:focus,
input[type="password"]:focus {
  background-color: #ddd;
  outline: none;
}

/* Segundo plano -- Modal */
#modal__background {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

#modal__background.active {
  opacity: 1;
  pointer-events: all;
}
