@import "geist/font/geist-sans.css";
@import "geist/font/geist-mono.css";

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100%;
  font-family: "Geist Sans", sans-serif;
}

/* 1. Set your main form width to 500px */
#get-code-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 500px;
  gap: 20px;
}

/* 2. Create the horizontal row container */
#form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;

  box-sizing: border-box;
  border: 1px solid lightblue;
  border-radius: 10px;
  overflow: hidden;
}

/* 3. Apply your exact requested widths */
#form-row-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 100%;
  background: aliceblue;
}

#form-row-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: 100%;
}

#get-code-form label {
  text-align: left; /* Left align text looks cleaner when next to an input */
  display: block;
  font-size: 24px;
}

/* 4. FIX: Allow the input to gracefully fill its 100px container */
#get-code-form input {
  width: 300px;
  box-sizing: border-box; /* Ensures padding doesn't break the 100px width */
  height: 30px; /* Slightly taller for better readability */
  border-radius: 5px;
  border: 1px solid black;
}

img {
  width: 500px;
  margin-bottom: 20px;
}

#submit_get_code {
  width: 300px;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 10px;
  background-color: aliceblue;
  border: 1px solid lightblue;
  border-radius: 10px;
  cursor: pointer;
}

#submit_get_code:hover {
  background-color: white;
}

@media screen and (max-width: 500px) {
  a {
    font-size: 14px;
  }

  img {
    width: 300px;
    height: auto;
  }

  #form-row {
    width: 350px;
    max-height: 100px;
  }

  #form-row-1 label {
    padding: 10px;
    font-size: 16px;
  }

  #get-code-form input {
    width: 200px;
    height: 20px;
  }
}
