* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: white;
  color: #1f2937;
  height: 100vh;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr 1fr;
  }
}

.left-section {
  background: url('/images/login-bg.jpg') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
  position: relative;
}


.heading-container {
  max-width: 28rem;
  margin-bottom: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .heading-container {
    text-align: center;
    margin-left: 4rem;
    /* align-self: flex-start; */
  }
}

.heading {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1d4ed8;
  margin-bottom: 2rem;
}

.image-container {
  width: 100%;
  max-width: 44rem;
  height: auto;
  margin-top: auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.right-section {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.form-wrapper {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.icon-users {
  width: 2rem;
  height: 2rem;
  color: #f59e0b;
  stroke-width: 2;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1f2937;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #1f2937;
  margin-bottom: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  position: relative;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  outline-offset: 2px;
  outline-color: transparent;
  transition: outline-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline-color: #2271b6;
  box-shadow: 0 0 0 2px #2271b6;
}

.required-star {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #dc2626;
  font-weight: 700;
  pointer-events: none;
}

.required-star-password {
  right: 2.5rem;
}

.icon-eye {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
}

.forgot-password-container {
  display: flex;
  justify-content: flex-end;
}

.forgot-password-link {
  font-size: 0.875rem;
  color: #2271b6;
  text-decoration: none;
  cursor: pointer;
}

.forgot-password-link:hover,
.signup-link:hover,
.footer-link:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 0.5rem 0;
  background-color: #1d4ed8;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.login-button:hover {
  background-color: #1e40af;
}

.icon-chevron {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.footer-text {
  font-size: 0.875rem;
  color: #4b5563;
  text-align: center;
}

.signup-link {
  color: #2271b6;
  text-decoration: none;
  margin-left: 0.25rem;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.footer-link {
  text-decoration: none;
  color: #4b5563;
}

.footer-link:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

 .floating-label-group {
    position: relative;
    margin-top: 1rem;
  }

  .floating-label-group input {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 1rem 2.5rem 0.5rem 0.75rem;
    font-size: 1rem;
    background-color: white;
  }

  .floating-label-group label {
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    color: #6c757d;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    background-color: white;
    padding: 0 4px;
  }

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: black;
  font-weight: bold;
  padding: 0 4px;
  border-radius: 4px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

  .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
  }

.required-asterisk {
  color: red;
}

@media (max-width: 767px) {
    .left-section {
        display: none;
    }
}


.floating-label-select-group {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    font-size: 1rem;
    background-color: white;
}

.select-group select {
    height: 40px;
    line-height: 40px;
}

.select-group select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%225%22%20viewBox%3D%220%200%2010%205%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200L5%205L10%200H0Z%22%20fill%3D%22%232271b6%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 5px;
}
