main,
body {
  font-family: "Roboto", sans-serif;
  --Tomato: hsl(4, 100%, 67%);

  --Dark-Slate-Grey: hsl(234, 29%, 20%);
  --Charcoal-Grey: hsl(235, 18%, 26%);
  --Grey: hsl(231, 7%, 60%);
  --White: hsl(0, 0%, 100%);
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

body,
#root {
  min-height: 100vh;
  display: grid;
  align-content: center;
  background-color: var(--Dark-Slate-Grey);
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--White);
  width: 45%;
  margin-inline: auto;
  padding: 0.5rem;
  border-radius: 1rem;
}

.sign-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.form-info {
  /* border: 2px solid green; */
  width: 90%;
  padding-left: 2rem;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 80%;
}

.form label {
  font-size: 0.8rem;
  color: black;
  font-weight: 900;
}

.form button {
  font-size: 0.8rem;
  background-color: black;
  border: 2px solid black;
  color: white;
  border-radius: 5px;
  padding: 0.75rem 1.5rem;
}
.form input {
  padding-left: 1rem;
  padding-block: 0.5rem;
}

h1 {
  margin-top: 2rem;
  color: var(--Dark-Slate-Grey);
  font-size: 3rem;
  font-weight: 900;
}

.row p {
  margin-left: 0.8rem;
}

.desktop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  main {
    width: 90%;
  }
  .sign-up {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .form-info {
    padding-left: 0;
  }
  .form {
    width: 100%;
  }
}

.success-message {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--White);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  margin: auto;
  gap: 1rem;
}

.success-message img {
  width: 50px;
}

.success-message h1 {
  color: var(--Dark-Slate-Grey);
  line-height: 0.9;
}

.success-message button {
  background-color: var(--Dark-Slate-Grey);
  color: var(--White);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
}

.success-message button:hover {
  background-color: var(--Tomato);
}
