/* KAILASH — Login page (ice cube factory & distribution) */

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.hua-login {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--gas-login-panel, #0a1f3d);
}

/* ---- Visual panel (slider) ---- */
.hua-login-visual {
  flex: 1 1 62%;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--gas-login-visual, #0d47a1);
}

.hua-login-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hua-login-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  z-index: 0;
}

.hua-login-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hua-login-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  filter: blur(2px) brightness(0.85) saturate(1.05);
  transition: transform 5.5s ease-out, filter 1.2s ease-in-out;
}

.hua-login-slide.is-active img {
  transform: scale(1);
  filter: blur(0.5px) brightness(0.9) saturate(1.1);
}

.hua-login-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(45, 28, 12, 0.72) 0%,
    rgba(92, 58, 30, 0.45) 45%,
    rgba(245, 237, 224, 0.15) 100%
  );
}

.kailash-visual .hua-login-caption {
  display: none;
}

.kailash-overlay {
  background: linear-gradient(
    135deg,
    rgba(5, 25, 55, 0.82) 0%,
    rgba(13, 71, 161, 0.55) 42%,
    rgba(100, 181, 246, 0.18) 100%
  );
}

/* ---- Kailash landing panel (left side) ---- */
.kailash-landing-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 2.5rem 6.5rem;
  pointer-events: none;
  color: #f0f8ff;
}

.kailash-landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b3e5fc;
  margin-bottom: 0.75rem;
}

.kailash-landing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 8px;
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #b3e5fc 55%, #4fc3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kailash-landing-lead {
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(224, 247, 255, 0.92);
  margin: 0 0 1.5rem;
}

.kailash-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.kailash-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(179, 229, 252, 0.35);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  min-width: 88px;
}

.kailash-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e1f5fe;
}

.kailash-stat span {
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(224, 247, 255, 0.75);
}

.kailash-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(8, 32, 68, 0.55);
  border: 1px solid rgba(129, 212, 250, 0.3);
  border-radius: 16px;
  max-width: 560px;
}

.kailash-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
}

.kailash-flow-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0277bd, #4fc3f7);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(2, 119, 189, 0.4);
}

.kailash-flow-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(224, 247, 255, 0.88);
}

.kailash-flow-arrow {
  color: rgba(179, 229, 252, 0.7);
  font-size: 0.65rem;
}

.kailash-coverage {
  max-width: 560px;
}

.kailash-coverage-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #81d4fa;
  margin-bottom: 0.55rem;
}

.kailash-coverage-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kailash-coverage-zones span {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(179, 229, 252, 0.28);
  color: rgba(240, 248, 255, 0.95);
}

.kailash-login-tagline {
  font-size: 0.72rem;
  color: #5a7a9a;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.hua-login-form.portal-operator::before {
  background: linear-gradient(180deg, #0277bd, #4fc3f7, #0277bd);
}

.portal-operator .login-logo .brand-icon {
  background: linear-gradient(135deg, #01579b, #4fc3f7);
  box-shadow: 0 8px 22px rgba(1, 87, 155, 0.35);
}

.portal-operator .btn-spa-login {
  background: linear-gradient(135deg, #01579b, #0288d1);
}

.portal-operator .btn-spa-login:hover {
  background: linear-gradient(135deg, #0277bd, #4fc3f7);
  box-shadow: 0 6px 18px rgba(2, 119, 189, 0.35);
}

.portal-operator .portal-badge {
  background: linear-gradient(135deg, #0288d1, #4fc3f7);
}

.hua-login-visual-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
}

.hua-login-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(254, 250, 245, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(26, 18, 9, 0.4);
  backdrop-filter: blur(10px);
  padding: 9px 18px;
  border-radius: 30px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  transition: background 0.25s, color 0.25s;
}

.hua-login-home:hover {
  background: rgba(26, 18, 9, 0.65);
  color: #e8cc77;
}

.hua-login-brand-mini {
  font-family: 'Playfair Display', serif;
  color: rgba(254, 250, 245, 0.9);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hua-login-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(254, 250, 245, 0.85);
  background: rgba(26, 18, 9, 0.35);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.hua-login-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 3;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: rgba(254, 250, 245, 0.96);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
  transition: opacity 0.5s ease;
}

.hua-login-dots {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hua-login-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(254, 250, 245, 0.75);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hua-login-dot.is-active,
.hua-login-dot:hover {
  background: #e8cc77;
  border-color: #e8cc77;
  transform: scale(1.2);
}

/* ---- Form panel ---- */
.hua-login-form {
  flex: 0 0 38%;
  max-width: 480px;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  background: linear-gradient(180deg, #faf6f0 0%, #fefaf5 50%, #f5ede0 100%);
  box-shadow: -12px 0 48px rgba(26, 18, 9, 0.12);
  position: relative;
  z-index: 5;
}

.hua-login-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c9a227, #a0622a, #c9a227);
}

.hua-login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow:
    0 20px 50px rgba(61, 40, 16, 0.1),
    0 0 0 1px rgba(201, 162, 39, 0.2);
}

.hua-login-card .login-logo { margin-bottom: 1.35rem; }

.hua-login-card .login-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none;
  border-radius: 0;
}

/* Autofill — warm theme */
.hua-login-card input:-webkit-autofill,
.hua-login-card input:-webkit-autofill:hover,
.hua-login-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f5ede0 inset !important;
  -webkit-text-fill-color: #1a1209 !important;
  caret-color: #1a1209;
  transition: background-color 9999s ease-out;
}

/* Portal accents on form panel */
.hua-login-form.portal-agent::before  { background: linear-gradient(180deg, #6b9e7a, #3d5c48, #6b9e7a); }
.hua-login-form.portal-member::before { background: linear-gradient(180deg, #8ba8c4, #4a6080, #8ba8c4); }
.hua-login-form.portal-audit::before  { background: linear-gradient(180deg, #d4a888, #6b4428, #d4a888); }
.hua-login-form.portal-terapis::before { background: linear-gradient(180deg, #b09ac0, #5a4a6a, #b09ac0); }

@media (max-width: 991px) {
  .hua-login { flex-direction: column; }
  .hua-login-visual {
    flex: 0 0 52vh;
    min-height: 52vh;
  }
  .hua-login-form {
    flex: 1;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    box-shadow: none;
  }
  .kailash-landing-panel {
    padding: 4.5rem 1.25rem 5rem;
    justify-content: flex-end;
  }
  .kailash-landing-title { letter-spacing: 4px; }
  .kailash-flow { display: none; }
  .kailash-stats { margin-bottom: 0.75rem; }
  .kailash-coverage-zones span { font-size: 0.62rem; padding: 4px 8px; }
  .kailash-visual .hua-login-caption { display: block; bottom: 1.25rem; left: 1.25rem; font-size: 0.95rem; }
  .kailash-landing-lead { display: none; }
  .hua-login-dots { bottom: 1.25rem; right: 1.25rem; }
}

/* Login / Register mode tabs */
.login-mode-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(245, 237, 224, 0.65);
  border-radius: 999px;
  border: 1px solid rgba(13, 71, 161, 0.12);
}

.login-mode-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #5a4a3a;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-mode-tab:hover {
  color: #0d47a1;
}

.login-mode-tab.active {
  background: #fff;
  color: #0d47a1;
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.12);
}

.login-mode-panel .form-text {
  font-size: 0.68rem;
  color: #8a7a6a;
  margin-top: 0.25rem;
}
