:root {
  --green: #2f855a;
  --light-green: #e6f4ec;
  --yellow: #f6c453;
  --dark: #1f2933;
  --gray: #6b7280;
  --bg: #355f4a;
}


body {
  background: var(--bg);
  color: var(--dark);
  font-family: system-ui, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  padding-bottom: 8vh;
}

.card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  /* max-width: clamp(320px, 90vw, 480px); */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

form p {
  margin-bottom: 18px;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--green);
}


h1 {
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 22ch;
}

button {
  background: var(--green);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
}


button:hover {
  background: #276749;
}


button:disabled {
  opacity: 0.6;
  cursor: wait;
}



@media (max-width: 375px) {

  .page {
    align-items: flex-start;
    padding: 16px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    height: fit-content;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  h1 {
    font-size: 1.35rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  input,
  select {
    padding: 14px;
    font-size: 16px;
  }
  
}

@media (min-width: 376px) and (max-width: 413px) {

  .card {
    width: 80%;
    max-width: 90%;
    height: fit-content;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  h1 {
    font-size: 1.35rem;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  input,
  select {
    padding: 14px;
    font-size: 16px;
  }

}

@media (min-width: 414px) and (max-width: 767px) {
  .card {
    max-width: 400px;
  }

  h1 {
    font-size: 1.45rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .card {
    max-width: 460px;
    padding: 28px;
  }

  h1 {
    font-size: 1.55rem;
  }
}

@media (min-width: 1024px) {
  .card {
    max-width: 480px;
  }
}

@media (min-width: 1440px) {
  .card {
    max-width: 520px;
  }
}
