@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;800&display=swap");
/* Main container styles */
.main-container {
  font-family: "Open Sans", Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  background-color: #f0f0f0;
  justify-content: center;
  align-items: center;
}

/* Content wrapper styles */
.content-wrapper {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* Image section styles */
.image-wrapper {
  flex: 1;
  position: relative;
  background-image: url("university-image.jpg");
  background-size: cover;
  background-position: center;
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(32, 130, 36, 0.3);
}

.back-to-home {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  z-index: 2;
}

.back-to-home svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* Form section styles */
.form-section {
  border: none;
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
}

.form-header h1 {
  font-family: "Open Sans", Arial, sans-serif;
  text-align: center;
  font-size: 24px;
  color: #449e25;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-header p {
  text-align: center;
  font-size: 14px;
  color: #666666;
  margin-bottom: 30px;
}

.back-to-login {
  text-align: center; /* Center-aligns the link inside the container */
  margin: 20px 0 0 0;
}

.back-to-login a {
  text-decoration: none;
  color: #0000ee;
  font-weight: 600;
}

.back-to-login a:hover {
  text-decoration: underline;
}

/* Form input styles */
.form-row {
  margin-bottom: 15px;
}

.form-input-group {
  width: 100%;
}

/* Form input styles */
input[type="text"],
.submit-button {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  font-family: "Open Sans", Arial, sans-serif;
}

input[type="text"] {
  padding: 16px;
  border: 2px solid #5a6478;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: "Open Sans", Arial, sans-serif;
  transition: all 0.2s ease; /* Updated transition */
}

input::placeholder {
  color: #4a5a73;
}

input[type="text"]:focus {
  border-color: #449e25;
  outline: none;
}

.submit-button {
  margin: 20px 0 0 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 15px;
  width: 100%;
  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", Arial, sans-serif;
  font-weight: 600;
  z-index: 1;
}

.submit-button::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;
}

.submit-button:hover::before {
  transform: rotateX(90deg);
}

.submit-button:hover {
  color: white;
}

/* Sign in link styles */
.sign-in-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.sign-in-link a {
  color: #449e25;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
}

/* Mobile styles */
@media (max-width: 560px) {
  .content-wrapper {
    max-width: 80%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    padding: 0 20px;
  }

  .form-section {
    padding: 20px;
    margin: 0 auto;
    width: calc(100% - 40px);
  }

  .form-header h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
  }

  .form-header p {
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
  }

  input[type="text"],
  .submit-button {
    padding: 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-row {
    margin-bottom: 12px;
    padding: 0;
    width: 100%;
  }

  .sign-in-link {
    font-size: 13px;
    margin-top: 15px;
    text-align: center;
  }

  .back-to-home {
    position: absolute;
    top: 15px;
    left: 15px;
  }

  .back-to-home svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  body,
  html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }
}
