/***new******/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
  }
  
  .main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  .container-fluid {
    flex: 1;
    padding: 0;
    width: 100%;
  }
  
  /* Left Side Banner with Images Grid */
  .left-banner {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
  }
  
  /* Updated Grid Layout with height-responsive sizes */
  .grid-wrapper {
    display: grid;
    gap: 10px; /* Reduced from 20px */
    margin-right: auto;
    margin-left: auto;
    grid-template-areas:
      "r1a r1b r1c r1d"
      "r2a r2b r2b r2c"
      "r3a .    .    r3c"
      "r4a r4b r4c r4d";
    grid-template-columns: 100px 100px 100px 100px; /* Reduced from 128px */
    grid-template-rows: 100px 100px 100px 100px; /* Reduced from 128px */
    max-width: 480px; /* Adjusted for smaller grid cells */
    max-height: 450px; /* Maximum height constraint */
  }
  
  .grid-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
  }
  
  .grid-wrapper img:hover {
    transform: scale(1.05);
  }
  
  /* Small images - keeping natural size from grid template */
  .grid-wrapper .small {
    aspect-ratio: 1/1;
  }
  
  /* Large image - spans 2x2 grid cells */
  .grid-wrapper .large {
    grid-area: r2b;
    object-fit: cover;
    height: 200px;
  }
  
  .mg-top-30 {
    margin-top: 10px; /* Reduced from 20px */
  }
  
  /* Quote Section - made more compact */
  .quote-section {
    margin-top: 1rem;
    text-align: center;
    margin-bottom: 1.5rem; /* Space for footer */
  }
  
  .quote-text {
    font-style: italic;
    font-size: 0.9rem; /* Reduced */
    color: #555;
    line-height: 1.3; /* Reduced */
  }
  
  /* Right Side Login Form */
  .right-banner {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1rem;
  }
  
  .login-box {
    width: 100%;
    max-width: 360px;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 0px 16px 2px #dad7d7;
  }
  
  .login_header {
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
  }
  
  .logo_login {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .logo-tagline {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive;
    font-weight: normal;
    color: #555;
    margin-top: 15px;
    letter-spacing: 1px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
  }
  
  /* Form Styling - slightly more compact */
  .input-container {
    position: relative;
    margin-bottom: 2rem;
  }
  
  .input-container i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #0069d9;
  }
  
  .input-field {
    width: 100%;
    padding: 8px 8px 8px 40px;
    border: none;
    border-radius: 25px;
    background-color: white;
    color: #333;
    border:1px solid #ccc;
    border-radius:8px;
  }
  
  .input-field:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  
  .input-field::placeholder {
    color: #999;
  }
  
  /* Button with #007bff color */
  .submit-button {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 25px;
    background-color: #007bff;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .submit-button:hover {
    background-color: #0069d9;
  }
  
  .signup-now {
    margin-top: 1rem;
    font-size: 0.85rem;
  }
  
  .signup-now a {
    color: #F36C16;
    text-decoration:none;
    font-weight: bold;
  }
  
  .signup-now a:hover {
    text-decoration: underline;
  }
  
  /* Footer as regular div - now guaranteed visible */
  .powered-by-v2 {
    width: 100%;
    text-align: center;
    padding: 6px;
    font-size: 0.75rem;
    position: relative;
    z-index: 10;
    color: #777;
    background:#f8f8f8;
    border-top:1px solid #ddd;
  }
  
  .powered-by-v2 a {
    color: #007bff;
    text-decoration: none;
  }
  
  .powered-by-v2 a:hover {
    text-decoration: underline;
  }
  
  /* Row layout fix */
  .row {
    margin: 0;
    height: 100%;
  }
  
  /* Specific optimization for 1264 x 583 screen */
  @media screen and (max-height: 600px) {
    .grid-wrapper{
      grid-template-columns: 90px 90px 90px 90px;
      grid-template-rows: 90px 90px 90px 90px;
      gap: 10px;
      max-height: 390px;
    }
    .grid-wrapper .large {
      height: 190px;
    }
    .login-box {
      height: 95%;
    }
    
    .quote-section {
      margin-top: 1.55rem;
      margin-bottom: 1rem;
    }
    
    .quote-text {
      font-size: 1.2rem;
      line-height: 1.2;
    }
    
    .mg-top-30 {
      margin-top: 5px;
    }
    
    .powered-by-v2 {
      padding: 4px;
      font-size: 0.7rem;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 991px) {
    .container-fluid .row {
      flex-direction: column;
    }
  
    .col-md-6 {
      flex: 0 0 100%;
      max-width: 100%;
      padding: 0;
    }
  
    .left-banner {
      order: 2;
      padding-bottom: 0;
      min-height: 50vh;
    }
  
    .right-banner {
      order: 1;
      min-height: 50vh;
    }
  
    .logo_login {
      max-width: 220px;
    }
    
    /* Adjust grid for smaller screens */
    .grid-wrapper {
      gap: 16px;
      grid-template-columns: 128px 128px 128px 128px;
      grid-template-rows: 128px 128px 128px 128px;
      max-width: 400px;
      max-height: 472px;
    }
  }
  
  @media (max-width: 767px) {
    .grid-wrapper {
      gap: 6px;
      grid-template-columns: 70px 70px 70px 70px;
      grid-template-rows: 70px 70px 70px 70px;
      max-width: 340px;
      max-height: 310px;
    }
  
    .login-box {
      padding: 1rem;
    }
    
    .logo_login {
      max-width: 200px;
    }
  }
  
  @media (max-width: 576px) {
    .grid-wrapper {
      gap: 6px;
      margin-left: auto;
      margin-right: auto;
      grid-template-areas:
        "r1a r1b"
        "r1c r1d"
        "r2a r2b"
        "r2b r2c"
        "r3a r3c"
        "r4a r4b"
        "r4c r4d";
      grid-template-columns: 65px 65px;
      grid-template-rows: repeat(7, 65px);
      max-width: 150px;
      max-height: 480px;
    }
  
    .quote-text {
      font-size: 0.8rem;
    }
  
    .login-box {
      padding: 0.8rem;
    }
  
    .input-field {
      padding: 7px 7px 7px 35px;
    }
    
    .logo_login {
      max-width: 180px;
    }
  }
  
  /* For very small screens */
  @media (max-width: 400px) {
    .grid-wrapper {
      gap: 4px;
      grid-template-columns: 60px 60px;
      grid-template-rows: repeat(7, 60px);
      max-width: 130px;
      max-height: 440px;
    }
  }
  
  
  /* HTML Modified Structure for better layout */
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
  }
  
  .container-fluid, .row, .col-md-6 {
    height: 100%;
  }