/* Login-focused style overrides
   - Does NOT change any class or ID names; only overrides styles for login-related selectors.
   - Include this AFTER your main style.css to ensure overrides apply.
*/

/* Use a clean system font stack */
body, h1, p, div, label, input, button {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #102027;
}

/* Page background and container centering */
body {
  background: linear-gradient(180deg, #f6fbfb 0%, #eef6f5 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Login panel layout */
#wzLoginPanel {
  width: 54vw;
  max-width: 980px;
  min-width: 320px;
  margin: 6vh auto 8vh;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(16,32,43,0.12);
  padding: 28px;
  border: 1px solid rgba(16,32,43,0.06);
}

/* Left logo block */
.LeftLogo {
  width: 34%;
  min-width: 180px;
  text-align: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(49,78,92,0.03), rgba(255,255,255,0.02));
  border-radius: 10px;
}

/* Brand images adapt */
.LeftLogo .brand-logo {
  width: 92%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 18px rgba(16,32,43,0.06));
}

/* subtle separator between logos */
.logo-separator {
  height: 1px;
  width: 60%;
  background-color: #e6eef0;
  margin: 6px auto;
}

/* Right side login content */
.loginRight {
  width: 66%;
  padding: 4px 6px;
}

/* Title specifically inside the login box */
.loginBox .loginTitle {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #073f3d;
  font-weight: 700;
  color: #0b5250;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

/* Intro paragraph */
.loginRight > p:first-of-type {
  color: #334e4d;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Login box */
.loginBox {
  background: linear-gradient(180deg,#ffffff,#fbfdfd);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(16,32,43,0.06);
  border: 1px solid rgba(16,32,43,0.04);
  display: block;
}

/* label layout (preserve class names but modernize spacing) */
.loginBoxRight {
  float: left;
  width: 28%;
  font-weight: 600;
  color: #0b5250;
  margin-top: 8px;
}
.loginBoxLeft {
  float: right;
  width: 70%;
  margin-top: 6px;
}

/* Inputs */
input[type="text"], input[type="password"], input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d6e7e5;
  background: #fbffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 0.98rem;
  color: #0b5250;
  transition: box-shadow .18s ease, border-color .18s ease, transform .08s ease;
  outline: none;
  -webkit-appearance: none;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
  border-color: #7fc7bf;
  box-shadow: 0 6px 18px rgba(39,120,113,0.12);
  transform: translateY(-1px);
}

/* Checkbox size consistent */
#rememberme {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Login button — modern primary */
.loginBtn {
  border-radius: 10px;
  background: linear-gradient(180deg, #0b7b73, #0a6a63);
  color: #fff !important;
  border: none;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(11,123,115,0.18);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.loginBtn:hover, .loginBtn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(11,123,115,0.2);
  opacity: 0.98;
}

/* Forgot link */
.loginBox a[href^="#"], .loginBox a[onclick] {
  color: #0b7b73;
  font-weight: 600;
  text-decoration: underline;
}

/* Error message */
.loginError, #loginError {
  display: block;
  background: #ffe9e9;
  border: 1px solid #f5b6b6;
  color: #8a1b1b;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

/* Mobile logos */
.mobileLogos {
  display: none;
  margin-top: 18px;
  text-align: center;
}
.mobileLogos img {
  height: 44px;
  margin: 0 8px;
  vertical-align: middle;
}



/* Footer */
#linkFooter {
  margin-top: 18vh;
  /*background: transparent;*/
  color: #334e4d;
  font-size: 0.95rem;
 
  text-align: center;
}

/* Modal sizing for login dialogs */
#modal {
  width: min(760px, 92vw);
  max-height: 78vh;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%,-50%) !important;
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 24px 55px rgba(16,32,43,0.18);
}

/* Make modal title area cleaner */
#modalheader {
  background: linear-gradient(90deg,#0b7b73,#0a6a63);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px 12px 0 0;
}
#modaltitle { color: #fff; font-weight: 700; }

/* mobile responsiveness */
@media (max-width: 900px) {
  #wzLoginPanel {
    width: 92vw;
    flex-direction: column;
    padding: 18px;
  }
  .LeftLogo { width: 100%; order: -1; display:flex; gap:10px; padding-bottom: 12px; }
  .loginRight { width: 100%; }
  .loginBoxRight, .loginBoxLeft { float: none; width: 100%; }
  .mobileLogos { display: block; }
  #linkFooter { margin-top: 6vh; }
}

/* Login tweaks */
.loginBox .btn-transparent { background: transparent; border: none; color: #137f6a; cursor: pointer; font-weight:600; padding:4px 8px; }
.loginError { display:none; margin-top:12px; }
.loginError.is-visible { display:block; }

/* Make login button responsive */
@media (max-width:600px) {
  .loginBtn { width:100% !important; display:block; }
  .loginBoxRight, .loginBoxLeft { float:none; width:100%; }
}

/* Visual focus for inputs */
input:focus { box-shadow: 0 6px 18px rgba(39,120,113,0.12); border-color:#7fc7bf; outline: none; }

/* Reduce inline style usage fallback */
.loginBoxLeft[style] { position:relative; }

/* Dashboard visual overrides (append after the login overrides) */

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid rgba(16,32,43,0.04);
}
.header .logo img { max-height: 120px; }

/* Hero card */
.hero {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg,#ffffff,#fbfbff);
}

/* DashboardInner product grid container */
#dashboardInner {
  margin-top: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Product card placeholders — productGrid will inject cards here */
.product-card {
  flex: 1 1 calc(33.333% - 18px);
  max-width: calc(33.333% - 18px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16,32,43,0.06);
  padding: 12px;
  margin-bottom: 18px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .product-card { flex: 1 1 calc(50% - 12px); max-width: calc(50% - 12px); }
  #dashboardRight { margin-top: 18px; }
}
@media (max-width: 575px) {
  .product-card { flex: 1 1 100%; max-width: 100%; }
  #wzLoginPanel, #wzDashboardPanel { padding-left: 12px; padding-right: 12px; }
}

/* Loader styles (same as provided for index) */
/* Centered overlay loader with faded background */
#loading {
  position: fixed;
  inset: 0;                /* top:0; right:0; bottom:0; left:0 */
  display: none;           /* toggled by JS */
  z-index: 12000;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45); /* faded dark overlay */
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: auto;    /* block page interactions while visible */
  padding: 20px;
  box-sizing: border-box;
}

/* keep whole mask centered and responsive */
#loading-mask {
  width: 100%;
 /* max-width: 560px;*/
  margin: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* content card */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg,#ffffff,#fbfcfc);
  padding: 18px 26px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(11,123,115,0.06);
  width: 100%;
  max-width: 460px;
  text-align: center;
}

/* animated ring */
.loader-ring {
  width: 68px;
  height: 68px;
  animation: loader-rotate 1.6s linear infinite;
}
.loader-ring circle {
  stroke: #0b7b73;
  stroke-width: 6;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 95;
  stroke-dashoffset: 65;
  animation: loader-dash 1.4s ease-in-out infinite;
  opacity: 0.98;
}
@keyframes loader-rotate { 100% { transform: rotate(360deg); } }
@keyframes loader-dash {
  0%   { stroke-dashoffset: 95; stroke-dasharray: 1,94; }
  50%  { stroke-dashoffset: 24; stroke-dasharray: 60,35; }
  100% { stroke-dashoffset: 95; stroke-dasharray: 1,94; }
}

/* dots */
.loader-dots { display:flex; gap:10px; }
.loader-dots span {
  width:10px; height:10px; border-radius:50%; background:#0b7b73;
  animation: loader-bounce 0.9s infinite ease-in-out; opacity:0.95;
}
.loader-dots span:nth-child(2){ animation-delay:0.12s; }
.loader-dots span:nth-child(3){ animation-delay:0.24s; }
@keyframes loader-bounce {
  0%,80%,100% { transform: translateY(0) scale(.9); opacity:.6; }
  40% { transform: translateY(-8px) scale(1.1); opacity:1; }
}

/* texts */
.loader-text { font-weight:700; color:#073f3d; font-size:1rem; }
.loader-subtext { font-size:0.88rem; color:#4a6a68; opacity:0.95; }

/* ensure visibility on small screens */
@media (max-width:520px) {
  .loader-wrapper { padding:14px; gap:10px; }
  .loader-ring { width:56px; height:56px; }
  .loader-text { font-size:0.95rem; }
  .loader-subtext { font-size:0.8rem; }
}

/* hide any legacy inline loader visuals if left behind */
#loading .uil-default-css { display:none !important; }
/* Modal overlay and modal tweaks */
.modal-overlay { position:fixed; inset:0; z-index:9998; background: rgba(0,0,0,0.45); display:none; }

#modal { z-index:9999; border-radius:10px; max-width:900px; margin: 20px auto; display:none; box-shadow:0 24px 55px rgba(0,0,0,0.14); }
#modal[aria-hidden="false"], #modal.show { display:block; }

/* Small polish */
#linkFooter { color:#334e4d; font-size:0.95rem; }