#wrap {
  min-width: 100% !important;
  max-width: 100% !important;
}

#wrap .wrap {
  min-width: 100% !important;
  max-width: 100% !important;
}

.login-root-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 90px;
  font-family: "Inter", sans-serif;
  background-image: url("https://mialab.com/wp-content/uploads/2026/01/login_backgroung.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Background layer */
.login-root-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://mialab.com/wp-content/uploads/2026/01/login_backgroung.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.1); /* avoid blur edges */
  z-index: 0;
}

/* Keep login content sharp */
.login-root-container > * {
  position: relative;
  z-index: 1;
}


/* ---- Base Layout ---- */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-family: "Inter", sans-serif;
}

header {
  padding: 17px 17px;
}

/* Background image (blur) */
.login-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("https://mialab.com/wp-content/uploads/2026/01/login_backgroung.jpg") center/cover no-repeat;
  filter: blur(4px);
  z-index: -1;
}

/* ---- Main container ---- */
.login-container {
  display: flex;
  width: 940px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ---- Left side (Red branding area) ---- */
.login-left {
  width: 38%;
  background: radial-gradient(circle, #ff0062 0%, #b40000 100%);
  padding: 35px 38px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ✅ pushes logo to top, company info to bottom */
  align-items: center;
  height: auto; /* Ensures full-height layout */
}

.login-logo {
  max-width: 140px;
  margin-top: 0;
  margin-bottom: 20px;
  align-self: center; /* Center the logo */
}

.heading {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  justify-self: center;
  align-self: flex-start;
  font-family: "Inter", sans-serif;
}

.sub-heading {
  font-size: 14px !important;
  color: #ffffff !important;
  opacity: 0.85;
  margin-bottom: 25px;
  font-weight: 500;
}

.company-info {
  width: 100%;
  text-align: start;
  margin-top: auto; /* ✅ forces it to bottom */
}

.company-info p {
  font-size: 14px !important;
  color: #ffffff !important;
  margin: 4px 0;
  opacity: 0.9;
}

/* ---- Right side (Form box) ---- */
.login-right {
  width: 62%;
  padding: 48px 55px;
}

.right-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 26px;
  font-family: "Inter", sans-serif;
}

/* ---- Form ---- */
.login-form label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  font-family: "Inter", sans-serif;
}

.login-form input {
  width: 100% !important;
  height: 44px !important;
  border-radius: 6px;
  border: 1px solid #ccc !important;
  padding: 0 12px !important;
  margin-bottom: 16px;
  font-size: 14px !important;
  outline: none;
  font-family: "Inter", sans-serif !important;
  background-color: #8080801c !important;
}

/* password icon wrapper */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 35px;
}

.toggle-password {
  position: absolute;
  top: 38%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* form row */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 18px;
}

.forgot-link {
  text-decoration: none;
  color: #e4023a;
}

/* login button */
.btn-login {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 50px;
  background: radial-gradient(circle, #ff0062 0%, #b40000 100%);
  color: white;
  font-size: 15px;
  cursor: pointer;
  margin: 10px 0 18px 0;
}

.btn-login:hover {
  background: radial-gradient(circle, #ff0062 0%, #b40000 100%);
}

/* Sign up text */
.signup-text {
  text-align: center;
  font-size: 14px;
}

.signup-text a {
  color: #e4023a;
  text-decoration: none;
}

/* MAC browser note */
.mac-note {
  font-size: 12px;
  text-align: center;
  margin-top: 14px;
  opacity: 0.9;
}

.login-header-container {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-header-container h1 {
  padding-bottom: 10px;
  font-family: "Inter", sans-serif;
  color: white!important;
}
.login-header-container p {
  margin: 0px;
  padding-bottom: 40px;
  width: 321px;
  color: white!important;
}

.login-footer-container {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  margin-bottom: 15px;
}
.login-footer-container h1 {
  padding-bottom: 20px;
  font-family: "Inter", sans-serif;
}
.login-footer-container p {
  margin: 0px;
  color: white !important;
}
.login-footer-container p a {
  font-size: 13px;
  color: #555;
  margin: 4px 0;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

/* Overlay behind loader */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: none;
}

/* Loader container */
.login-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 9999;
  display: none;
}

/* Spinner animation */
.login-loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #a00000; /* Mialab red */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

/* ============ */

/* Remember Me Container */
.remember-me-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
}

/* The Switch Wrapper */
.switch {
  position: relative;
  width: 45px;
  height: 24px;
  position: relative;
  width: 45px;
  height: 24px;
  display: inline-block !important;
  margin-bottom: 0px !important;
}

/* Hide Default Checkbox */
.switch input {
  opacity: 0;
  width: 0 !important;
  height: 0 !important;
  margin-bottom: 0px !important;
}

/* Slider Background */
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #dcdcdc;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
  border-radius: 34px;
}

/* Slider Knob */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* When Checked */
.switch input:checked + .slider {
  background-color: #b40000;
}

.switch input:checked + .slider:before {
  transform: translateX(21px);
}

/* Text */
.remember-text {
  font-size: 14px;
  color: #555;
  user-select: none;
}
/* ===================== */

/* Sign Up Link Section */
.signup-link-container {
  text-align: center;
  margin-top: 18px;
}

.signup-link-container p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.signup-link {
  color: #b40000;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
  transition: 0.2s ease;
}

.signup-link:hover {
  text-decoration: underline;
  color: #b40000;
}

/* Spinner keyframes */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .login-container {
    flex-direction: column;
    width: 90%;
  }
  .login-left,
  .login-right {
    width: 100%;
    padding: 35px;
  }
  .login-left {
    text-align: center;
    align-items: center;
    height: auto;
    gap: 30px;
  }
  .heading {
    justify-self: center;
    align-self: center;
  }
  .company-info {
    margin-top: 10px;
  }
}

@media (max-width: 1024px) {
  .heading {
    justify-self: center;
    align-self: center;
  }
}
