/* Old responsive styles */
@media screen and (max-width: 991px) {
  .login-logo {
    margin-bottom: 20px;
  }

  .login-title {
    font-size: 25px;
    padding-bottom: 10px;
  }

  .login-card{
    height: fit-content;
  }
}

@media screen and (max-width: 575px) {
  .login-logo {
    margin-bottom: 10px;
  }
  .login-card .col-lg-6:last-child {
    padding: 1rem;
  }
  .login-card {
    border-radius: 20px;
  }

  .login-title {
    font-size: 22px;
  }
}

/* New custom premium design responsive styles */
@media (max-width: 900px) {
    body.before-login-body {
        background-color: #ffffff !important;
        align-items: flex-start;
    }
    .custom-login-wrapper {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    .custom-login-left {
        padding: 40px 20px 20px;
        flex: none;
    }
    .custom-illustration, .custom-left-content {
        display: none;
    }
    .custom-logo-container {
        justify-content: center;
    }
    .custom-login-right {
        padding: 40px 30px;
        flex: 1;
        justify-content: flex-start;
    }
    .custom-login-right h1 {
        font-size: 24px;
        text-align: center;
    }
    .custom-login-right .subtitle {
        text-align: center;
    }
}

/* Vertical responsiveness: increase height on larger screens */
@media (min-height: 800px) and (min-width: 901px) {
    .custom-login-wrapper {
        height: 680px;
    }
    .custom-illustration img {
        max-height: 380px;
    }
}
@media (min-height: 900px) and (min-width: 901px) {
    .custom-login-wrapper {
        height: 750px;
    }
    .custom-illustration img {
        max-height: 430px;
    }
}