.page {
  padding: 5.6rem 2.4rem;
  display: flex;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: center;
  position: relative;
  flex-direction: row;
  justify-content: center;
}

.overlay {
  display: none;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to right,
    var(--white) 5%,
    rgba(255, 255, 255, 0) 100%
  );
}

.header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  width: 100%;
}

.header p {
  text-align: center;
  align-self: stretch;
  font-stretch: normal;
  flex-grow: 0;
}

.logo {
  content: var(--logo);
  width: 4.8rem;
  height: 4.8rem;
}

.content-container {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  gap: 0.8rem;
}

.large-content-container {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  gap: 0.8rem;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form .link {
  width: 100%;
  text-align: center;
}

.form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.external-providers-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.linked-accounts-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.link-account-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-account-block p {
  text-align: center;
}

.general-error-container {
  display: flex;
  width: 100%;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .page {
    align-items: start;
    padding: 0;
    background: var(--login-bg);
    background-repeat: no-repeat;
    background-size: cover;
  }

  .overlay {
    display: block;
  }

  .content-container {
    width: 86rem;
    max-width: 86rem;
  }

  .content-container > *:first-child {
    margin-top: auto;
  }

  .content-container > *:last-child {
    margin-bottom: auto;
  }

  .large-content-container {
    padding: 2rem;
  }

  .form {
    max-width: 48rem;
  }

  .form.large {
    max-width: none;
  }

  .header {
    max-width: 48rem;
    flex-shrink: 0;
  }

  .external-providers-section {
    max-width: 48rem;
  }

  .divider {
    max-width: 48rem;
  }
}

@media (min-width: 2000px) {
  .page {
    background: var(--login-bg-2x);
    background-repeat: no-repeat;
    background-size: cover;
  }
}
