@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap");
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  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: 1310px;
}

.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: 1310px;
  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;
}
form {
  margin: 0;
}

.row {
  display: flex;
  gap: 10px;
  margin: 0 0 15px 0;
}
.input-group {
  flex: 1;
}
input[type="text"] {
  width: 100%;
  padding: 16px;
  border: 2px solid #5a6478;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s ease; /* Updated transition */
  background-color: white;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}
input[type="text"]::placeholder,
input[type="file"]::placeholder {
  color: #4a5a73;
}

.input-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #5a6478;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s ease; /* Updated transition */

  background-color: white;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  resize: vertical; /* Allow vertical resizing only */
  height: 100px;
}
input[type="file"] {
  box-sizing: border-box; /* Ensures padding and border are included in width */
  width: 100%;
  padding: 16px;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  transition: all 0.2s ease; /* Updated transition */
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 16px;
  border: none;
  background: #e9e9e9;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  font-size: 14px;
}

.input-group textarea::placeholder {
  color: #4a5a73;
}

.input-group textarea:focus {
  outline: none;
  border-color: blue;
  box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.25);
}

.input-group textarea.error {
  border-color: red !important;
  box-shadow: 0 0 0 0.3rem rgba(255, 0, 0, 0.25) !important;
}

.input-group textarea.valid {
  border-color: green !important;
  box-shadow: none;
}

.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;
}

.input-group textarea + .form-error {
  margin: 6px 0 0 0;
  color: red;
  font-size: 15px;
}

.input-group input + .form-error {
  margin: 8px 0 0 0;
  color: red;
  font-size: 15px;
}

select[name="coordinator"] {
  width: 100%;
  padding: 16px;
  border: 2px solid #5a6478;
  font-size: 16px;
  transition: all 0.2s ease; /* Updated transition */
  border-radius: 4px;
  background-color: white;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
}

select[name="coordinator"]:focus {
  outline: none;
  border-color: blue;
  box-shadow: 0 0 0 0.3rem rgba(0, 123, 255, 0.25);
}

select[name="coordinator"].error {
  border-color: red !important;
  box-shadow: 0 0 0 0.3rem rgba(255, 0, 0, 0.25) !important;
}

select[name="coordinator"].valid {
  border-color: green !important;
  box-shadow: none;
}

.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 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;
}
.tip {
  background-color: #f8f9fa; /* Light background color */
  border-left: 4px solid #002b7f; /* Blue left border */
  padding: 20px 15px; /* Padding around the text */
  margin: 20px 0; /* Margin to separate from other elements */
  border-radius: 4px; /* Rounded corners */
  font-size: 16px; /* Font size */
  color: #495057; /* Dark text color */
  line-height: 1.5; /* Line height for readability */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  display: flex; /* Flexbox for alignment */
  align-items: center; /* Center icon and text vertically */
  gap: 8px; /* Space between icon and text */
}

.tip i {
  color: #002b7f; /* Icon color */
  font-size: 18px; /* Adjust size as needed */
}

h3 {
  color: #666666;
  font-size: 16px;
  font-weight: 500;
  margin: 30px 0 16px 0;
}

@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;
    padding-top: 20px;
  }

  .signup-header h1 {
    font-size: 22px;
  }

  .signup-header p {
    font-size: 14px;
  }

  .row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  /* Form Elements */
  input[type="text"],
  input[type="file"],
  select[name="coordinator"],
  .input-group textarea {
    padding: 12px;
    font-size: 14px;
  }

  .verifybtn {
    margin-top: 15px;
    padding: 12px;
    font-size: 14px;
  }

  .alert {
    margin: 20px 0;
  }

  .alert__wrapper {
    padding: 18px;
  }

  .alert__message {
    font-size: 16px;
  }

  .tip {
    padding: 15px;
    font-size: 14px;
  }
}

@media screen and (max-width: 560px) {
  .image-container {
    max-height: 200px;
  }

  fieldset {
    padding: 15px;
  }

  .signup-header h1 {
    font-size: 20px;
  }

  .signup-header p {
    font-size: 13px;
  }

  /* Form Elements */
  input[type="text"],
  input[type="file"],
  select[name="coordinator"],
  .input-group textarea {
    padding: 10px;
    font-size: 13px;
  }

  input[type="file"]::file-selector-button {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 12px;
  }

  .verifybtn {
    margin-top: 12px;
    padding: 10px;
    font-size: 13px;
  }

  .alert {
    margin: 15px 0;
  }

  .alert__wrapper {
    padding: 15px;
  }

  .alert__message {
    font-size: 14px;
  }

  .tip {
    padding: 12px;
    font-size: 13px;
  }

  .additionalcontent p {
    font-size: 13px;
    margin: 15px 0 0 0;
  }

  form h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 14px;
    margin: 20px 0 12px 0;
  }

  .input-group input + .form-error,
  .input-group textarea + .form-error {
    font-size: 13px;
    margin: 6px 0 0 0;
  }
}
