/* ===============================
   MODAL DESIGN - DESKTOP
================================ */
.modal-content {
  border-radius: 32px;
  overflow: hidden;
}

.login-left {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

.login-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form styling */
.modal .form-control {
  border: 1px solid #ddd;
}

.modal .form-control:focus {
  box-shadow: none;
  border-color: #7323a8;
}

/* Buttons */
.btn-primary-custom {
  background: #7323a8;
  color: #fff;
  border: none;
  transition: 0.3s ease;
}

.btn-primary-custom:hover {
  background: #5e1c8c;
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid #7323a8;
  color: #7323a8;
  background: transparent;
  transition: 0.3s ease;
}

.btn-outline-custom:hover {
  background: #7323a8;
  color: #fff;
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 991.98px) {
  .modal-dialog {
    margin: 1rem;
    max-width: 100%;
  }

  .modal-content {
    border-radius: 20px;
  }

  .login-left {
    min-height: auto;
    padding: 20px;
  }

  .login-img {
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }

  .col-lg-6.bg-white {
    padding: 1.5rem !important;
  }

  h3 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
  }

  .form-control {
    padding: 0.75rem 1.25rem !important;
  }

  .small {
    font-size: 0.75rem;
  }

  .mb-4 {
    margin-bottom: 1rem !important;
  }

  .my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .mt-4 {
    margin-top: 1rem !important;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .login-img {
    max-height: 160px;
  }

  .col-lg-6.bg-white {
    padding: 1rem !important;
  }

  h3 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.9rem;
  }

  .form-control {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem;
  }
}

/* Smooth animation */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}
.bg-color {
  background-color: #7323a8;
}

.bg-color:hover {
  background-color: #5e1d8a; /* darker shade */
  color: #fff;
}

.nav-hover:hover {
  color: #7323a8 !important;
}

.register-left {
  background: url("/assets/images/login/login-usedbrands.svg") no-repeat center center;
  background-size: contain;   /* 👈 shows full image */
  background-color: #7323A8;  /* fallback background */
  min-height: 250px;
  position: relative;
}

/* Desktop */
@media (min-width: 992px) {
  .register-left {
    background-size: cover;   /* 👈 full width on desktop */
    min-height: 600px;
  }
}

.otp-input {
  width: 45px;
  height: 50px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
}

/* ===== MOBILE FOOTER FIX ===== */
@media (max-width: 991px) {

  footer .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  footer .row > div {
    text-align: center;
  }

  footer ul {
    padding: 0;
  }

  footer .col-lg-3,
  footer .col-lg-2 {
    margin-bottom: 30px;
  }

  /* Newsletter input full width clean */
  footer .position-relative {
    max-width: 100%;
  }

  /* App buttons center */
  footer .d-flex.gap-3 {
    justify-content: center;
  }

  /* Social icons center */
  footer .fs-4 {
    justify-content: center;
  }

  /* Bottom section stack nicely */
  footer .d-flex.flex-column {
    text-align: center;
  }

}

/* Center logo only on mobile */
@media (max-width: 991px) {

  footer h3 {
    justify-content: center !important;
    text-align: center;
  }

}