/* Reset and base */
  * {
    box-sizing: border-box;
  }
  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #333;
    height: 100vh;
    overflow: hidden;
  }


  a {
    color: #1D85E6;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }

  /* Container layout */
 .container {
  display: flex;
  height: 100vh; /* changed from min-height */
  align-items: stretch; /* stretch children vertically */
  justify-content: center;
  padding: 0; /* reset padding for full height usage */
  overflow: hidden;      /* prevent internal scrollbars */
  flex-direction: row;   /* desktop default */
}


  /* Left side with form */
.login-left {
  flex: 1;
  max-width: 600px;
  padding: 80px; /* optional, re-add padding here to preserve spacing */
  overflow-y: auto; /* in case content grows */
  margin-top: 80px;
  text-align: center;
}


.login-heading-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1D85E6;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(29, 133, 230, 0.2);
}


.login-heading-wrapper .subheading {
  margin-top: 10px;
  font-size: 1.1em;
  color: #555;
}

  /* Heading styling */
  .login-left h1 {
    color: #6ca0e6;
    font-weight: 520;
    font-size: 1.9rem;
    margin-bottom: 8px;
  }

  .login-left p.subheading {
    font-weight: 600;
    font-size: 1rem;
    color: #444;
    margin: 0 0 30px 0;
  }

  /* Form */
  form.login-form {
    display: flex;
    flex-direction: column;
  }

  form.login-form input[type="email"],
  form.login-form input[type="password"] {
    font-size: 1rem;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 1.5px solid #6ca0e6;
    border-radius: 8px;
    outline-offset: 0;
    transition: border-color 0.3s ease;
  }
  form.login-form input[type="email"]::placeholder,
  form.login-form input[type="password"]::placeholder {
    color: #999;
  }

  form.login-form input[type="email"]:focus,
  form.login-form input[type="password"]:focus {
    border-color: #1D85E6;
  }

  /* Checkbox with label */
  .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-weight: 700;
    user-select: none;
  }
  .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;

  }
/* Submit button */
.btn-login {
  background: #1D85E6;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 1rem;
  cursor: pointer;
  text-transform: none; /* prevent uppercase */
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(29, 133, 230, 0.2);
}

.btn-login:hover {
  background-color: #166fc2;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(29, 133, 230, 0.25);
}

.btn-login:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(29, 133, 230, 0.2);
}


  /* Right side with image and title */
.login-right {
  flex: 1;
  max-width: 700px;
  height: 100vh;
  background: linear-gradient(135deg, #6ca0e6, #b4cfff);
  border-radius: 0;
  padding: 40px 30px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: fadeInRight 0.7s ease-in-out;
}

.login-right::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  animation: rotateBg 15s linear infinite;
  z-index: 0;
}

.login-right h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 30px;
  z-index: 1;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.login-right img {
  max-width: 85%;
  height: auto;
  border-radius: 16px;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}
.login-right img:hover {
  transform: scale(1.05);
}

/* Animation for fade-in effect */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Background rotation effect */
@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


  .mobile-illustration {
  display: none; /* Hidden by default (desktop) */
  width: 100%;
  max-width: 300px;
  margin: 0 auto 30px auto;
}

.mobile-portal-text {
  display: none; /* Hidden by default */
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-top: 20px;
}



  /* Responsive for smaller screens */
  @media (max-width: 900px) {
    html, body {
    height: 100vh;
    font-family: 'Roboto',sans-serif,Lora,Verdana,Tahoma;
    margin: 0;
    padding: 0;
    overflow: hidden; /* prevent scrolling */
  }
  .login-heading-wrapper h1 {
    font-size: 1.5rem; /* or adjust smaller */
  }

   .mobile-illustration {
    display: block;
  }
.mobile-portal-text {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #000; /* Ensure it's black on mobile */
  }


   .container {
    flex-direction: column;
    justify-content: flex-start; /* move content up */
    padding: 20px;
    height: 100vh;
    overflow: hidden;
  }
  .login-left {
    max-width: 100%;
    padding: 20px; /* Optional: adjust padding */
    margin-bottom: 0;
    justify-content: flex-start;
    overflow: hidden;
  }
  .login-right {
    display: none !important;
  }
}
@media screen and (width: 912px) and (height: 1368px) {
  .login-right {
    display: none !important;
  }
 .mobile-illustration {
    display: block;
  }
  .container {
    flex-direction: column;
    justify-content: flex-start; /* center vertically */
    align-items: center;     /* center horizontally */
    padding: 0 20px;
    height: 90vh;
  }

  .login-left {
    max-width: 100%;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}
@media screen and (max-height: 667px) {
  .login-left {
    justify-content: flex-start;
    padding-top: 20px;
  }
  .mobile-portal-text {
    font-size: 1.5rem;
    white-space: nowrap;
  }
  .login-heading-wrapper h1 {
    font-size: 1.5rem;
  }

  .subheading {
    margin-bottom: 15px;

  }

  .login-form input {
    margin-bottom: 12px;
  }

  .checkbox-group {
    margin-bottom: 15px;
  }
}

}

@media (max-width: 375px) {
  .subheading {
    white-space: nowrap;
    font-size: 0.85rem; /* Optional: reduce size for very small screens */
  }
  .mobile-portal-text {
    font-size: 1.5rem;
    white-space: nowrap;
  }

   .login-heading-wrapper h1 {
    font-size: 1.3rem;
  }
}


  }