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

body {
  background-color: #f6f7f8;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  background-color: #f6f7f8;
  overflow: auto;
  height: 100dvh;
}

:root {
  --text-color: #adadad;
  --inputs-color: #a8a8a8;
  --border-color: #d1d1d1;
  --checkbox-color: #2a3647;
  --submit-button: #2a3647;
  --h2-color: black;
  --blue-color: #29abe2;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.max-width {
  max-width: 1920px;
  margin: 0 auto;
}

header {
  padding: 48px 48px 0 48px;
  background-color: transparent;
  display: block;
  box-shadow: none;
}

.form-div {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.back-icon {
  position: absolute;
  top: 64px;
  left: 48px;
  fill: var(--blue-color);
  cursor: pointer;
  z-index: 10;
}

form {
  position: relative;
  width: 652px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background-color: #ffffff;
  padding: 48px 115px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
}

form > div {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-control {
  position: relative;
  margin-bottom: 8px;
}

h1 {
  font-size: 61px;
  font-weight: 700;
}

.headlineLine {
  width: 136px;
  height: 3px;
  background-color: #29abe2;
  border: none;
  margin-top: 16px;
  margin-bottom: 32px;
}

.input-container {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

.input-container input {
  width: 100%;
  font-size: 16px;
  padding: 12px;
  padding-right: 48px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  height: 48px;
  line-height: 48px;
  transition: 150ms ease;
}

.input-container input::placeholder {
  color: var(--text-color);
  font-size: 20px;
  transition: none;
}

.input-container input:hover {
  border: 2px solid var(--blue-color);
}

.input-container input:focus {
  outline: none;
  border: 2px solid var(--blue-color);
}

.input-container svg {
  position: absolute;
  top: 32%;
  right: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  fill: var(--text-color);
}

.checkbox-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 24px;
  margin-top: 24px;
}

.custom-checkbox-wrapper input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #373535;
  border-radius: 4px;
  background-color: white;
  position: relative;
  transition: background-color 0.2s;
}

.custom-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox {
  /* background-color: var(--checkbox-color); */
  border-color: #373535;
}

.custom-checkbox-wrapper p {
  color: var(--text-color);
}

.custom-checkbox-wrapper a {
  color: var(--blue-color);
  text-decoration: none;
}

.custom-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✔";
  color: #373535;
  position: absolute;
  font-size: 21px;
  top: 24%;
  left: 60%;
  transform: translate(-50%, -50%);
}

form button {
  background-color: var(--submit-button);
  color: #ffffff;
  font-weight: bold;
  border: none;
  padding: 8px 16px 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
}

form button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

form input:last-of-type {
  margin-bottom: 24px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 40px 0;
}

footer a {
  text-decoration: none;
  color: var(--text-color);
}

footer a:hover {
  color: var(--blue-color);
}

.d-none {
  display: none !important;
}

.error-message-div {
  display: flex;
  justify-content: flex-start;
}

.error-message {
  color: red;
  font-size: 14px;
  position: absolute;
  bottom: -6px;
  left: 4px;
}

.red-border {
  border: 2px solid red !important;
}

@media (max-width: 750px) {
  form {
    max-width: 396px;
    padding: 32px;
    margin: 0 16px;
  }

  form button {
    font-size: 16px;
  }

  .input-container input::placeholder {
    font-size: 16px;
  }

  .input-container svg {
    top: 38%;
  }

  .back-icon {
    top: 40px;
    left: 40px;
  }

  h1 {
    font-size: 32px;
  }

  .headlineLine {
    width: 80px;
    margin-bottom: 16px;
  }

  .custom-checkbox-wrapper {
    margin-bottom: 8px;
    margin-top: 8px;
  }

  form input:last-of-type {
    margin-bottom: 12px;
  }

  footer {
    margin: 16px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 24px;
  }

  .logo {
    width: 64px;
  }

  form button {
    font-size: 16px;
  }

  h1 {
    font-size: 32px;
  }

  .headlineLine {
    width: 120px;
  }

  .custom-checkbox-wrapper {
    margin-bottom: 8px;
    margin-top: 8px;
  }

  footer {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .custom-checkbox-wrapper {
    font-size: 14px;
    margin-bottom: 14px;
  }

  form {
    padding-inline: 16px;
  }
}

@media (max-width: 375px) {
  .error-message {
    font-size: 10px;
    bottom: -6px;
    left: 4px;
  }
  .logo {
    width: 48px;
  }

  .back-icon {
    top: 40px;
    left: 25px;
  }
}
