html,
body {
  height: 100%;
}

body {
  font-family: "Public Sans", sans-serif;
  background-color: #f8f7fa;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 12px 0 rgba(47, 43, 61, .14);
  padding: 48px;

  @media (max-width: 575.98px) {
    padding: 32px 20px;
  }
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;

  img {
    width: 34.9px;
    height: 24px;
  }

  span {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .25px;
    color: var(--text-primary);
  }
}

.auth-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 38px;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-label {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.form-control {
  font-size: 15px;
  line-height: 24px;
  border-color: var(--input-border);
  padding: 7px 14px;
  border-radius: 6px;

  &::placeholder {
    color: var(--text-disabled);
  }

  &:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem var(--primary-shadow);
  }
}

.password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-color: var(--input-border);
  border-left: none;
  cursor: pointer;

  img {
    display: block;
    width: 16px;
    height: 16px;
  }
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0;

  &:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 3px rgba(115, 103, 240, .3);
  }
}

.form-check-label {
  font-size: 15px;
  color: var(--text-primary);
}

.forgot-link {
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;

  img {
    width: 20px;
    height: 20px;
  }

  a,
  button {
    background: none;
    border: none;
    padding: 0;
    font-size: 15px;
    line-height: 22px;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;

    &:hover {
      text-decoration: underline;
    }
  }
}

.btn-login {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  padding: 8px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px 0 var(--primary-shadow);

  &:hover,
  &:focus {
    background-color: #6355e8;
    border-color: #6355e8;
    color: #fff;
  }
}

.register-text {
  font-size: 15px;
  text-align: center;
  color: var(--text-secondary);

  a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;

    &:hover {
      text-decoration: underline;
    }
  }
}

.divider {
  display: flex;
  align-items: center;
  gap: 8px;

  &::before,
  &::after {
    content: "";
    flex: 1 0 0;
    height: 1px;
    background-color: var(--input-border);
  }

  span {
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
  }
}

.social-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;

  a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: background-color .15s ease-in-out;

    &:hover {
      background-color: rgba(47, 43, 61, .06);
    }
  }

  img {
    width: 20px;
    height: 20px;
  }
}
