@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap");
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
  font-family: "Open Sans", sans-serif;
}

.container {
  display: flex;
  width: 100%;
  background-color: white;
  overflow: hidden;
}

/* Image container - exactly 50% width */
.image-container {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
  overflow: hidden;
  max-height: 650px;
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 42, 26, 0.3);
  z-index: 1;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

fieldset {
  flex: 0 0 50%;
  padding: 0px 80px;
  border: none;
  box-sizing: border-box;
  margin: 0;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center to flex-start */
  padding-top: 40px; /* Add some top padding */
}
.signup-header h1 {
  font-size: 36px;
  color: #171717;
  font-weight: 600;
  margin: 0;
}
.highlight {
  color: #ff8c00;
}
.signup-header p {
  font-size: 16px;
  color: #2e3849;
}

input[type="text"] {
  width: 100%;
  padding: 16px;
  border: 2px solid #5a6478;
  font-size: 16px;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  background-color: white;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  transition: all 0.2s ease; /* Updated transition */
}

input[type="text"]::placeholder {
  color: #4a5a73;
}

.input-group input:focus {
  outline: none;
  border-color: blue;
  box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.25);
}

.input-group input.error {
  border-color: red !important;
  box-shadow: 0 0 0 0.3rem rgba(255, 0, 0, 0.25) !important;
}

.input-group input.valid {
  border-color: green !important;
  box-shadow: none;
}

.form-error {
  color: red;
  font-size: 15px;
  margin: 8px 0 0 0;
}

.alert {
  background-color: #fff9e6;
  border-radius: 4px;
  width: 100%; /* Match container width */
  box-sizing: border-box; /* Include padding in width calculation */
  margin: 30px 0; /* Changed from auto to 0 for left/right margins */
}

.alert__wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 24px; /* Reduced padding to better match input/button */
  width: 100%;
  box-sizing: border-box;
}

.alert__icon {
  display: flex;
  align-items: center;
}

.alert__icon svg {
  vertical-align: middle; /* Align SVG with text */
}

.alert__message {
  color: #856404; /* Dark red text */
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.alert__link {
  color: #856404; /* Dark red link */
  text-decoration: underline;
}

.alert-sign-in {
  text-decoration: none; /* Removes the underline */
  color: #0000ee; /* Sets the link color */
  text-underline-offset: 4px;
}

.alert-sign-in:hover {
  text-decoration: underline; /* Optional: Adds underline on hover */
}

.verifybtn {
  margin: 20px 0 0 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 15px;
  width: 100%; /* Added this line to match input width */
  font-size: 16px;
  background-color: #4aa629;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.3s ease;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  z-index: 1;
}

.verifybtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #449e25;
  transform: rotateX(0deg);
  transform-origin: top;
  transition: transform 0.5s ease;
  z-index: -1;
}

.verifybtn:hover::before {
  transform: rotateX(90deg);
}

.verifybtn:hover {
  color: white;
}

form {
  margin: 0;
}

form h2 {
  color: #2e3849;
  font-size: 20px;
  font-weight: 500;
}

.additionalcontent p {
  margin: 20px 0 0 0;
  color: #2e3849;
  text-align: center;
}

.additionalcontent a {
  color: #0000ee;
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 4px;
}

.additionalcontent a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1100px) {
  .container {
    flex-direction: column;
  }

  .image-container {
    flex: 0 0 100%;
    max-height: 340px;
  }

  fieldset {
    flex: 0 0 100%;
    padding: 20px;
    max-height: none;
    overflow-y: visible;
  }

  .signup-header h1 {
    margin-top: 10px;
    font-size: 22px;
  }

  .signup-header p {
    font-size: 14px;
  }

  input[type="text"] {
    font-size: 14px;
    padding: 12px;
  }

  .verifybtn {
    font-size: 14px;
    padding: 12px;
  }

  .alert__wrapper {
    padding: 12px;
  }

  .alert__message {
    font-size: 14px;
  }

  .alert {
    margin: 0;
  }

  .alert__icon svg {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 560px) {
  .image-container {
    max-height: 200px;
  }

  .alert__icon svg {
    width: 18px;
    height: 18px;
  }
  fieldset {
    padding: 15px;
  }

  .signup-header h1 {
    font-size: 20px;
  }

  .signup-header p {
    font-size: 13px;
  }

  input[type="text"] {
    font-size: 13px;
    padding: 10px;
  }

  .verifybtn {
    font-size: 13px;
    padding: 10px;
  }

  .alert__wrapper {
    padding: 10px;
  }

  .alert__message {
    font-size: 13px;
  }
}
