:root {
  --text-base: #afb6c2;
  --text-title: #d4ccb6;
  --background: #191816;
  --form-background: #24221f;
  --primary-color: #ffc632;
  --poppins: "Poppins", sans-serif;
  --roboto: "Roboto", sans-serif;
}

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

html {
  font-size: 64.5%;
}

body {
  display: flex;
  height: 100vh;
  background: var(--background);
}

.form-side {
  flex: 1;
  padding: 30px;
}

.form-side form {
  background: var(--form-background);
  max-width: 600px;
  width: 80%;
  height: fit-content;
  padding: 30px;
  margin: 50px auto;
  border-radius: 4px;
}

form h1 {
  font-family: var(--poppins);
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 5px;
}

form p {
  font-family: var(--roboto);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-base);
  margin-bottom: 27px;
}

label {
  font-family: var(--poppins);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-base);
  margin-bottom: 5px;
}

.input-container {
  margin: 5px 0 20px 0;
  width: 100%;
  border: 2px solid #868686;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

input {
  border: none;
  width: 90%;
  padding: 8px;
  height: 100%;
  outline: none;
  background: transparent;
  font-family: var(--roboto);
  color: var(--text-base);
  font-weight: 500;
}

input:focus-within {
  background: transparent;
}

.account-options {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.account-options label[for="check"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--roboto);
  font-size: 1.6rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 19px;
}

.account-options label[for="check"] input {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  border: 1px solid #868686;
}

.account-options label[for="check"] input:checked {
  background-color: var(--primary-color);
  border: var(--primary-color);
}

.account-options label[for="check"] input:checked::after {
  content: "✔";
  position: relative;
  top: -11px;
  left: -5px;
  color: #473404;
  font-size: 18px;
  cursor: pointer;
}

.account-options p {
  font-family: var(--poppins);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 21px;
  color: var(--primary-color);
  cursor: pointer;
}

.account-options p:hover {
  text-decoration: underline;
}

.submit-btn {
  height: 51px;
  width: 100%;
  font-family: var(--poppins);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 27px;
  letter-spacing: 0.015em;
  color: #473404;
  border: none;
  border-radius: 4px;
  padding: 12px 24px 12px 24px;
  background: #ffc632;
  transition: transform 0.5s ease-out;
}

.submit-btn:hover {
  transform: scale(1.04);
  cursor: pointer;
}

.sign-up {
  text-align: center;
  margin: 15px 0;
  font-family: var(--roboto);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 16px;
  color: var(--primary-color);
}

.sign-up span {
  font-family: var(--poppins);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 21px;
  cursor: pointer;
}

.sign-up span:hover {
  text-decoration: underline;
}

.img {
  flex: 1;
  background-image: url("images/side-image.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 940px) {
  .img {
    transition: all 1s ease-out;
    flex: 0;
  }

  .form-side {
    flex: 1;
    transition: all 1s ease-out;
  }
}

@media (max-width: 740px) {
  .form-side form {
    background: transparent;
  }

  .form-side form {
    width: 100%;
    transition: all 1s ease-out;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 57%;
  }

  .account-options {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    margin: 40px 0 5px 0;
  }
}
