.main {
  display: flex;
  flex-direction: column;
}

.section {
  display: flex;
  flex: 1;
  padding: 2em;
}

.section:not(.section--text) {
  align-items: center;
}

.section--text {
  background-color: var(--color-pink-light);
  background-image: url("../../images/undraw_online-gallery_dljd_edited.svg");
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: auto;
  border-radius: var(--radius-base);
  margin: 2em;
}

.section--text ::selection {
  background-color: var(--color-dark);
  color: var(--color-dark);
}

p {
  margin: 1em 0;
}

a,
a:focus,
a:hover {
  color: inherit;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
}

.button,
.input {
  background-color: var(--color-teal-light);
  border: 0;
  border-radius: var(--radius-base);
  font-size: 1em;
  padding: 1em;
}

.button {
  background-color: var(--color-teal-dark);
  color: var(--color-light);
  cursor: pointer;
  transition: all 300ms;
}

.button:focus,
.button:hover {
  background-color: var(--color-teal-light);
  color: var(--color-dark);
  transition: all 300ms;
}

.input-help,
.input-label {
  border-width: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

::placeholder {
  color: var(--color-dark);
}

@media (min-width: 768px) {
  .main {
    flex-direction: row-reverse;
  }

  .section {
    min-height: 100vh;
  }

  .section--text {
    margin: 2em 2em 2em 0;
    min-height: calc(100vh - 4em);
  }
}
