/* ==========================================================================
   Kizmio Authentication Redesign - Modern Fintech & Social Theme
   Main Brand Color: #fa470d
   ========================================================================== */

:root {
  --kzm-auth-primary: #fa470d;
  --kzm-auth-primary-hover: #e03b05;
  --kzm-auth-primary-active: #bf3000;
  --kzm-auth-primary-soft: rgba(250, 71, 13, 0.08);
  --kzm-auth-gradient: linear-gradient(142deg, #ff5e1e 0%, #fa470d 46%, #d83400 100%);
  --kzm-auth-gradient-hover: linear-gradient(142deg, #e03b05 0%, #fa470d 100%);
  --kzm-auth-bg: #FAF8F7;
  --kzm-auth-surface: #FFFFFF;
  --kzm-auth-border: #E8E5E3;
  --kzm-auth-border-focus: #fa470d;
  --kzm-auth-text: #0F172A;
  --kzm-auth-text-muted: #64748B;
  --kzm-auth-radius-card: 28px;
  --kzm-auth-radius-input: 14px;
}

/* Hide global layout headers/footers on auth page */
body.kizmio-auth-body .main-header,
body.kizmio-auth-body .top-bar,
body.kizmio-auth-body .main-footer,
body.kizmio-auth-body .bottom-bar {
  display: none !important;
}

body.kizmio-auth-body {
  background-color: var(--kzm-auth-bg) !important;
  color: var(--kzm-auth-text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.kizmio-auth-body .main-wrapper {
  padding: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   AUTH PAGE MAIN CONTAINER (Expansive Desktop Layout)
   ========================================================================== */
.kzm-auth-page {
  width: min(1540px, calc(100% - 48px));
  margin-inline: auto;
  padding: 24px 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  gap: 28px;
}

/* Main Split Grid: Hero ~63% / Login ~37% */
.kzm-auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(410px, 0.95fr);
  gap: 38px;
  align-items: stretch;
  width: 100%;
}

/* ==========================================================================
   LEFT PANEL - BRAND / MARKETING HERO
   ========================================================================== */
.kzm-auth-hero {
  position: relative;
  border-radius: var(--kzm-auth-radius-card);
  background: var(--kzm-auth-gradient);
  overflow: hidden;
  padding: 44px 44px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(250, 71, 13, 0.22), 0 8px 24px rgba(0, 0, 0, 0.06);
  min-height: 670px;
  box-sizing: border-box;
}

/* Ambient Background Geometry */
.kzm-auth-hero__decor-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.kzm-auth-hero__decor-circle--1 {
  width: 440px;
  height: 440px;
  top: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
}
.kzm-auth-hero__decor-circle--2 {
  width: 260px;
  height: 260px;
  bottom: 80px;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}
.kzm-auth-hero__decor-circle--3 {
  width: 140px;
  height: 140px;
  top: 45%;
  left: 45%;
  opacity: 0.25;
}

/* Top Brand Mark */
.kzm-auth-hero__brand {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.kzm-auth-hero__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.kzm-auth-hero__logo-svg {
  height: 38px;
  width: auto;
  display: block;
}
.kzm-auth-hero__tagline {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   LEFT CONTENT ZONE (Controlled Max Width, Zero Overlap)
   ========================================================================== */
.kzm-auth-hero__content {
  position: relative;
  z-index: 5;
  width: min(52%, 520px);
  margin-bottom: 30px;
}

.kzm-auth-hero__headline {
  font-size: clamp(38px, 2.8vw, 48px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin: 0 0 14px;
  max-width: 500px;
}
.kzm-auth-hero__headline span {
  display: inline-block;
  color: #FFFFFF;
  position: relative;
}
.kzm-auth-hero__subcopy {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  max-width: 440px;
}

/* 4 Feature Rows */
.kzm-auth-hero__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 440px;
}
.kzm-auth-feature {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 10px 14px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.kzm-auth-feature:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.2);
}
.kzm-auth-feature__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--kzm-auth-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.kzm-auth-feature__text {
  display: flex;
  flex-direction: column;
}
.kzm-auth-feature__text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.kzm-auth-feature__text small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
  line-height: 1.3;
}

/* ==========================================================================
   RIGHT VISUAL ZONE (Dedicated Person Container)
   ========================================================================== */
.kzm-auth-hero__person-wrap {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 48%;
  height: 92%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.kzm-auth-hero__person-pic {
  display: contents;
}

.kzm-auth-hero__person {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
}

/* ==========================================================================
   BOTTOM HERO CARDS (Carefully Layered, No Text/Head Collisions)
   ========================================================================== */
.kzm-auth-hero__footer-cards {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}

/* Social Proof Card */
.kzm-auth-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  padding: 10px 16px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.kzm-auth-avatars {
  display: flex;
  align-items: center;
}
.kzm-auth-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  object-fit: cover;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.kzm-auth-avatar:first-child {
  margin-left: 0;
}
.kzm-auth-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--kzm-auth-primary);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.kzm-auth-social-proof__copy {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
}

/* Glassmorphic Value / Quote Card */
.kzm-auth-quote-card {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 14px 18px;
  max-width: 360px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.kzm-auth-quote-card__icon {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}
.kzm-auth-quote-card p {
  font-size: 12px;
  line-height: 1.45;
  color: #FFFFFF;
  margin: 0;
  font-style: italic;
}
.kzm-auth-quote-card__bar {
  width: 32px;
  height: 3px;
  background: #FFFFFF;
  border-radius: 3px;
  margin-top: 10px;
  opacity: 0.9;
}

/* ==========================================================================
   RIGHT PANEL - FLOATING AUTHENTICATION CARD
   ========================================================================== */
.kzm-auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.kzm-auth-card {
  background: var(--kzm-auth-surface);
  border-radius: var(--kzm-auth-radius-card);
  border: 1px solid var(--kzm-auth-border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.02);
  padding: 44px 40px;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  margin-inline: auto;
}

/* Card Header */
.kzm-auth-card__header {
  text-align: left;
  margin-bottom: 24px;
}
.kzm-auth-card__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--kzm-auth-text);
  margin: 0 0 6px;
}
.kzm-auth-card__subtitle {
  font-size: 14px;
  color: var(--kzm-auth-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Segmented Tabs (Login / Sign Up) */
.kzm-auth-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.kzm-auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 11px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kzm-auth-tab:hover {
  color: var(--kzm-auth-text);
}
.kzm-auth-tab.is-active {
  background: #FFFFFF;
  color: var(--kzm-auth-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Form Groups & Inputs */
.kzm-auth-group {
  margin-bottom: 18px;
}
.kzm-auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.kzm-auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.kzm-auth-input-icon {
  position: absolute;
  left: 16px;
  color: #94A3B8;
  font-size: 16px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
  z-index: 2;
}
.kzm-auth-input {
  width: 100%;
  height: 52px;
  border-radius: var(--kzm-auth-radius-input);
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  padding: 0 46px 0 46px;
  font-size: 14.5px;
  color: var(--kzm-auth-text);
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.kzm-auth-input:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}
.kzm-auth-input:focus {
  border-color: var(--kzm-auth-border-focus);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--kzm-auth-primary-soft);
}
.kzm-auth-input:focus ~ .kzm-auth-input-icon,
.kzm-auth-input:focus + .kzm-auth-input-icon {
  color: var(--kzm-auth-primary);
}
.kzm-auth-input-toggle {
  position: absolute;
  right: 14px;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
  z-index: 2;
}
.kzm-auth-input-toggle:hover {
  color: var(--kzm-auth-text);
}
.kzm-auth-input-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Controls: Remember Me & Forgot Password */
.kzm-auth-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 22px;
  font-size: 13px;
}
.kzm-auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  margin: 0;
}
.kzm-auth-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #CBD5E1;
  accent-color: var(--kzm-auth-primary);
  cursor: pointer;
  margin: 0;
}
.kzm-auth-forgot-link {
  color: var(--kzm-auth-primary);
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.16s ease;
}
.kzm-auth-forgot-link:hover {
  color: var(--kzm-auth-primary-hover);
  text-decoration: underline !important;
}

/* Primary Submit Button */
.kzm-auth-submit {
  width: 100%;
  height: 52px;
  border-radius: var(--kzm-auth-radius-input);
  border: none;
  background: var(--kzm-auth-gradient);
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(250, 71, 13, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.kzm-auth-submit:hover {
  background: var(--kzm-auth-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(250, 71, 13, 0.35);
}
.kzm-auth-submit:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(250, 71, 13, 0.2);
}

/* Divider */
.kzm-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 18px;
  color: #94A3B8;
  font-size: 12.5px;
  font-weight: 500;
}
.kzm-auth-divider:before,
.kzm-auth-divider:after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}
.kzm-auth-divider span {
  padding: 0 14px;
}

/* Social Buttons */
.kzm-auth-social-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.kzm-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  height: 48px;
  border-radius: var(--kzm-auth-radius-input);
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.kzm-auth-social-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
  color: #0F172A;
}

/* Bottom Switch Link */
.kzm-auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: #64748B;
  margin-top: 20px;
}
.kzm-auth-switch a {
  color: var(--kzm-auth-primary);
  font-weight: 700;
  text-decoration: none !important;
  margin-left: 4px;
}
.kzm-auth-switch a:hover {
  text-decoration: underline !important;
}

/* ==========================================================================
   BOTTOM TRUST BAR (Full Width Spanning)
   ========================================================================== */
.kzm-auth-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: 20px;
  padding: 20px 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  width: 100%;
  box-sizing: border-box;
}
.kzm-auth-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.kzm-auth-trust-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--kzm-auth-primary-soft);
  color: var(--kzm-auth-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.kzm-auth-trust-text {
  display: flex;
  flex-direction: column;
}
.kzm-auth-trust-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--kzm-auth-text);
  line-height: 1.25;
}
.kzm-auth-trust-text small {
  font-size: 11.5px;
  color: var(--kzm-auth-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   MINIMAL FOOTER WITH LANGUAGE SELECTOR
   ========================================================================== */
.kzm-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 6px 4px 12px;
  font-size: 12.5px;
  color: #64748B;
  width: 100%;
  box-sizing: border-box;
}
.kzm-auth-footer__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.kzm-auth-footer__sep {
  color: #CBD5E1;
}
.kzm-auth-footer__link {
  color: #64748B;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.16s ease;
}
.kzm-auth-footer__link:hover {
  color: var(--kzm-auth-primary);
}

/* Language Dropdown in Footer */
.kzm-auth-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: var(--kzm-auth-text) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.kzm-auth-lang-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (WOMAN REMAINS ALWAYS VISIBLE)
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET (768px – 1199px): Stacked Hero, Woman in Bottom-Right
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .kzm-auth-page {
    width: min(100%, calc(100% - 32px));
    padding: 20px 0 16px;
  }
  .kzm-auth-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .kzm-auth-hero {
    min-height: 560px;
    padding: 38px 36px 30px;
  }
  .kzm-auth-hero__content {
    width: 55%;
    max-width: 480px;
  }
  .kzm-auth-hero__headline {
    font-size: clamp(32px, 3.8vw, 40px);
    line-height: 1.08;
  }
  .kzm-auth-hero__features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 500px;
  }
  /* Woman is explicitly kept visible at bottom-right */
  .kzm-auth-hero__person-wrap {
    display: flex !important;
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 44%;
    height: 88%;
    max-height: 520px;
    z-index: 2;
  }
  .kzm-auth-hero__person {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
  }
  .kzm-auth-form-panel {
    display: flex;
    justify-content: center;
  }
  .kzm-auth-card {
    max-width: 480px;
    width: 100%;
  }
  .kzm-auth-trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px 24px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE (< 768px): Recomposed Hero, Woman Visible in Bottom-Right
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .kzm-auth-page {
    width: min(100%, calc(100% - 24px));
    padding: 16px 0 16px;
    gap: 20px;
  }
  .kzm-auth-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .kzm-auth-hero {
    min-height: 620px;
    padding: 26px 20px 22px;
    border-radius: 22px;
  }
  .kzm-auth-hero__brand {
    margin-bottom: 18px;
    gap: 10px;
  }
  .kzm-auth-hero__logo-svg {
    height: 32px;
  }
  .kzm-auth-hero__tagline {
    font-size: 11px;
    padding-left: 10px;
  }
  .kzm-auth-hero__content {
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
  }
  .kzm-auth-hero__headline {
    font-size: clamp(27px, 6.8vw, 34px);
    line-height: 1.08;
    max-width: 320px;
    margin-bottom: 10px;
  }
  .kzm-auth-hero__subcopy {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 16px;
    max-width: 300px;
  }
  /* Compact 2-column feature list on mobile */
  .kzm-auth-hero__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 340px;
  }
  .kzm-auth-feature {
    padding: 7px 9px;
    gap: 8px;
    border-radius: 11px;
  }
  .kzm-auth-feature__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
    border-radius: 8px;
  }
  .kzm-auth-feature__text strong {
    font-size: 11px;
  }
  .kzm-auth-feature__text small {
    display: none;
  }

  /* Woman is explicitly kept visible at bottom-right of mobile hero */
  .kzm-auth-hero__person-wrap {
    display: flex !important;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    height: 56%;
    max-height: 380px;
    z-index: 2;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .kzm-auth-hero__person {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
  }

  /* Bottom hero card composition for mobile */
  .kzm-auth-hero__footer-cards {
    position: relative;
    z-index: 6;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .kzm-auth-social-proof {
    max-width: 52%;
    padding: 8px 12px;
    border-radius: 12px;
  }
  .kzm-auth-avatar, .kzm-auth-avatar-badge {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }
  .kzm-auth-social-proof__copy {
    font-size: 10.5px;
    line-height: 1.25;
  }
  .kzm-auth-quote-card {
    display: none; /* Keep the mobile bottom-left clean and uncluttered */
  }

  /* Mobile Login Card */
  .kzm-auth-card {
    border-radius: 22px;
    padding: 30px 22px;
    max-width: 100%;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  }
  .kzm-auth-card__title {
    font-size: 24px;
  }
  .kzm-auth-input {
    height: 48px;
    font-size: 14px;
  }
  .kzm-auth-submit {
    height: 48px;
    font-size: 14.5px;
  }

  /* Trust Bar & Footer on Mobile */
  .kzm-auth-trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
  }
  .kzm-auth-trust-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 15px;
  }
  .kzm-auth-trust-text strong {
    font-size: 12px;
  }
  .kzm-auth-trust-text small {
    font-size: 10px;
  }
  .kzm-auth-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .kzm-auth-footer__left {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   VERY SMALL MOBILE (< 420px): Precision Compact Layout
   -------------------------------------------------------------------------- */
@media (max-width: 419.98px) {
  .kzm-auth-page {
    width: calc(100% - 16px);
  }
  .kzm-auth-hero {
    min-height: 570px;
    padding: 22px 16px 18px;
  }
  .kzm-auth-hero__headline {
    font-size: 25px;
    max-width: 250px;
  }
  .kzm-auth-hero__subcopy {
    font-size: 12px;
    max-width: 230px;
    margin-bottom: 12px;
  }
  .kzm-auth-hero__features {
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 210px;
  }
  .kzm-auth-hero__person-wrap {
    width: 46%;
    height: 52%;
    right: -4px;
  }
  .kzm-auth-social-proof {
    max-width: 50%;
    padding: 6px 10px;
  }
  .kzm-auth-social-proof__copy {
    font-size: 9.5px;
  }
  .kzm-auth-card {
    padding: 24px 16px;
  }
  .kzm-auth-trust-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
}
