@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
}

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

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

:root {
  --border-radius: 5px;
  --space-20: 20px;
  --space-10: 10px;
  --input-height: 40px;
  --primary-blue: #4246ff;
}

.signup {
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-20);
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.signup-form {
  background: #00000058;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  padding: var(--space-20);
  width: 400px;
  position: relative;
  z-index: 1;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    backdrop-filter: blur(10px);
  }

  &::after {
    content: '';
    position: absolute;
    bottom: calc(var(--input-height) + var(--space-20) + var(--space-20));
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #e9ecf610;
  }

  h1,
  span,
  label,
  button {
    color: #fff;
  }

  h1 {
    text-align: center;
    margin: var(--space-20) 0;
  }

  span {
    text-align: center;
    font-weight: 700;
    font-size: 18;
  }

  .inputs {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-20);
    gap: var(--space-10);

    input {
      height: var(--input-height);
      border: 1px solid #f7f7fa;
      border-radius: var(--border-radius);
      padding: 0 var(--space-20);

      &:focus {
        outline: 1px solid var(--primary-blue);
      }
    }
  }

  button {
    height: var(--input-height);
    background: var(--primary-blue);
    border-radius: var(--border-radius);
    margin-top: var(--space-20);
    border: none;
    cursor: pointer;
  }

  div:has(.save-info) {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-20);
  }

  input.save-info {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
    appearance: none;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    outline: none;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  input.save-info:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
  }

  input.save-info:checked::before {
    content: '';
    width: 3px;
    height: 6px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 2s;
  }

  label[for='save-info'] {
    cursor: pointer;
    user-select: none;
    font-size: 14px;
  }

  input.save-info:checked + label[for='saveInfoCheckbox'] {
    color: var(--primary-blue);
  }

  label[for='saveInfoCheckbox'] {
    color: var(--primary-blue);
  }

  input.save-info:focus + label[for='saveInfoCheckbox'] {
    text-decoration: underline;
  }
}
