/* =====================================================================
   Zenve BI — Ultra-Premium Light Glass Login Portal & 4K Hero Canvas
   Light Frosted Glassmorphism · Crystal 4K Background · Mobile OTP Auth
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --zauth-primary: #0070f3;
  --zauth-primary-cyan: #00f2fe;
  --zauth-primary-hover: #0060d6;
  --zauth-card-bg: rgba(255, 255, 255, 0.80);
  --zauth-card-border: rgba(255, 255, 255, 0.95);
  --zauth-text: #0f172a;
  --zauth-text-muted: #64748b;
  --zauth-success: #059669;
}

/* Viewport lock when login portal is visible — strictly zero scroll */
html.zenve-auth-required,
html:has(body.zenve-auth-required),
body.zenve-auth-required {
  overflow: hidden !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Master Fullscreen Portal with 4K Lossless Veterinary Intelligence Canvas */
#zenve-login-portal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  background-image: url('/assets/zenve-intelligence-engine-4k.png?v=20261023_4k_v15') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center top !important;
  image-rendering: -webkit-optimize-contrast;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  font-family: var(--font-sans, "Manrope", sans-serif);
  color: var(--zauth-text);
  overflow: hidden !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

#zenve-login-portal.zauth-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Soft ambient cyan/blue backlight halo behind right card */
.zauth-glow-orb {
  position: absolute !important;
  right: clamp(16px, 4.5vw, 96px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: clamp(340px, 32vw, 480px) !important;
  height: clamp(340px, 32vw, 480px) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.22) 0%, rgba(0, 112, 243, 0.12) 40%, transparent 70%) !important;
  filter: blur(80px) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Master Layout: Floating Login Card Aligned on the Right */
.zauth-layout-container {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
  padding-right: clamp(24px, 4.5vw, 88px) !important;
  padding-left: clamp(20px, 3vw, 48px) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  overflow: visible !important;
}

/* Left Hero Showcase permanently removed */
.zauth-hero-showcase {
  display: none !important;
}

/* =====================================================================
   RIGHT COLUMN: THE LUXURY LIGHT GLASS LOGIN CARD
   ===================================================================== */
.zauth-card-wrapper {
  width: clamp(340px, 28vw, 430px) !important;
  max-width: 430px !important;
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-self: center !important;
  box-sizing: border-box !important;
}

.zauth-login-card {
  width: 100% !important;
  max-width: 430px !important;
  background: var(--zauth-card-bg) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  border: 1.5px solid var(--zauth-card-border) !important;
  box-shadow:
    0 24px 60px -10px rgba(15, 23, 42, 0.18),
    0 8px 24px -4px rgba(0, 112, 243, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 1) !important;
  border-radius: clamp(20px, 1.8vw, 28px) !important;
  padding: 24px 26px 20px !important;
  box-sizing: border-box !important;
  animation: zauthCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes zauthCardEnter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Header with Centered Badge */
.zauth-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.zauth-card-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.zauth-card-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.85));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zauth-card-logo-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.zauth-card-brand-col {
  text-align: left;
  line-height: 1.15;
}

.zauth-card-brand-title {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.zauth-card-brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  display: block;
}

.zauth-card-brand-sub-teal {
  font-size: 9.5px;
  font-weight: 700;
  color: #0284c7;
  display: block;
}

.zauth-card-title {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.zauth-card-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Notice Banner */
.zauth-notice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(236, 253, 245, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.6);
  border-radius: 12px;
  margin-top: 14px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  color: #065f46;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.zauth-notice-pill.error {
  background: rgba(254, 242, 242, 0.95);
  border-color: rgba(248, 113, 113, 0.6);
  color: #991b1b;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
}

.zauth-notice-icon {
  font-size: 13px;
  flex-shrink: 0;
  color: #059669;
}

/* Input Group: Registered Mobile Number */
.zauth-field-box {
  margin-bottom: 16px;
}

.zauth-field-header {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 7px;
}

.zauth-input-container {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.zauth-input-container:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.16), 0 4px 14px rgba(2, 132, 199, 0.12);
  background: #ffffff;
}

.zauth-country-dropdown {
  background: rgba(248, 250, 252, 0.95);
  border: none;
  border-right: 1.5px solid rgba(203, 213, 225, 0.85);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.zauth-tel-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
  outline: none;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
}

.zauth-tel-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Glowing Primary Send Code Button */
.zauth-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0070f3 55%, #00d2ff 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(0, 112, 243, 0.38), 0 2px 8px rgba(2, 132, 199, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.zauth-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -4px rgba(0, 112, 243, 0.5), 0 4px 12px rgba(2, 132, 199, 0.3);
  filter: brightness(1.04);
}

.zauth-cta-btn:active {
  transform: translateY(0);
}

.zauth-cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Step 2: 6-Digit OTP Verification Section */
.zauth-step-otp-verify {
  display: none;
  animation: zauthFadeIn 0.25s ease;
}

.zauth-step-otp-verify.active {
  display: block;
}

.zauth-step-phone-input.inactive {
  display: none;
}

@keyframes zauthFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zauth-otp-target-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 12px;
  margin-bottom: 14px;
}

.zauth-otp-target-phone {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.zauth-edit-btn {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

/* 6 OTP Boxes Grid */
.zauth-digit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.zauth-digit-box {
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(203, 213, 225, 0.9);
  border-radius: 11px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.zauth-digit-box:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2), 0 4px 14px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.zauth-digit-box.filled {
  border-color: #0284c7;
  background: rgba(240, 249, 255, 0.98);
}

.zauth-timer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.zauth-resend-link {
  background: transparent;
  border: none;
  color: #0284c7;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.zauth-resend-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #94a3b8;
}

/* Card Security Footer */
.zauth-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 10.5px;
  color: #64748b;
}

.zauth-footer-lock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* Gateway Badge Button */
.zauth-gateway-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #334155;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zauth-gateway-badge-btn:hover {
  background: rgba(224, 242, 254, 0.9);
  border-color: #38bdf8;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.zauth-gateway-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.zauth-gateway-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.5);
  animation: zauth-pulse 2s infinite ease-in-out;
}

@keyframes zauth-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.zauth-gateway-key-icon {
  font-size: 10px;
  opacity: 0.85;
}

/* Gateway Modal Backdrop */
.zauth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.zauth-modal-backdrop.zauth-hidden {
  display: none !important;
  opacity: 0;
}

.zauth-modal-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 24px;
  color: #0f172a;
  box-sizing: border-box;
}

.zauth-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.6);
}

.zauth-modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zauth-modal-icon {
  font-size: 24px;
}

.zauth-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.zauth-modal-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #0284c7;
  font-weight: 600;
}

.zauth-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.zauth-modal-close-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

.zauth-modal-body {
  margin-bottom: 18px;
}

.zauth-modal-info {
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 14px;
  background: rgba(240, 249, 255, 0.85);
  border: 1px solid rgba(186, 230, 253, 0.8);
  border-radius: 10px;
  padding: 10px 12px;
}

.zauth-modal-info code {
  font-family: var(--font-mono, monospace);
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
}

.zauth-modal-input-wrap {
  margin-bottom: 12px;
}

.zauth-modal-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0284c7;
  margin-bottom: 6px;
}

.zauth-modal-input {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: #0f172a;
  font-family: var(--font-mono, monospace);
  outline: none;
  transition: all 0.2s ease;
}

.zauth-modal-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.zauth-modal-feedback {
  font-size: 11px;
  min-height: 18px;
  margin-top: 6px;
}

.zauth-modal-feedback.success {
  color: #059669;
  font-weight: 600;
}

.zauth-modal-feedback.error {
  color: #dc2626;
  font-weight: 600;
}

.zauth-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.zauth-modal-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.zauth-modal-btn.secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.zauth-modal-btn.secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.zauth-modal-btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #0070f3 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.28);
}

.zauth-modal-btn.primary:hover {
  box-shadow: 0 6px 18px rgba(0, 112, 243, 0.4);
  transform: translateY(-1px);
}

/* =====================================================================
   ALL-DESKTOP RESPONSIVE FIT SYSTEM (1024px up to 4K UHD)
   Strictly Zero Scrollbars · Right-Anchored Floating Card · Flawless Framing
   ===================================================================== */

/* 1. Large & Ultra-HD Desktops (4K UHD & QHD: >= 2560px) */
@media (min-width: 2560px) {
  .zauth-layout-container {
    padding-right: clamp(64px, 6vw, 120px) !important;
  }
  .zauth-card-wrapper {
    width: 440px !important;
    max-width: 440px !important;
  }
  .zauth-login-card {
    max-width: 440px !important;
    padding: 28px 30px 24px !important;
  }
}

/* 2. Compact Desktops & Laptops (1024px to 1279px, e.g. 1024x768, 1152x864, 1280x800) */
@media (min-width: 768px) and (max-width: 1279px) {
  #zenve-login-portal {
    background-position: 28% top !important;
  }
  .zauth-layout-container {
    padding-right: clamp(14px, 2.2vw, 24px) !important;
    padding-left: 12px !important;
    justify-content: flex-end !important;
  }
  .zauth-card-wrapper {
    width: clamp(330px, 32vw, 365px) !important;
    max-width: 365px !important;
  }
  .zauth-login-card {
    max-width: 365px !important;
    padding: 20px 20px 18px !important;
  }
}

/* 3. Aspect Ratio: Screens narrower than 16:9 (16:10 like 1440x900, 1280x800, 1680x1050; 4:3 like 1024x768) */
@media (max-aspect-ratio: 16/10) and (min-width: 768px) {
  #zenve-login-portal {
    background-position: 32% top !important;
  }
}

/* 4. Aspect Ratio: Ultra-widescreen (21:9 or short window with high aspect ratio) */
@media (min-aspect-ratio: 2/1) {
  #zenve-login-portal {
    background-position: center 12% !important;
  }
}

/* 5. Viewport Height Adaptation: <= 840px (Standard Laptops with Browser Toolbars & Windows Taskbar) */
@media (max-height: 840px) and (min-width: 768px) {
  #zenve-login-portal {
    padding: 8px 0 !important;
  }
  .zauth-layout-container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .zauth-card-wrapper {
    width: clamp(330px, 26vw, 410px) !important;
  }
  .zauth-login-card {
    padding: 18px 22px 16px !important;
    border-radius: 22px !important;
  }
  .zauth-card-header {
    margin-bottom: 10px !important;
  }
  .zauth-card-logo-badge {
    gap: 10px !important;
    margin-bottom: 8px !important;
  }
  .zauth-card-logo-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
  }
  .zauth-card-logo-icon img {
    width: 28px !important;
    height: 28px !important;
  }
  .zauth-card-brand-title {
    font-size: 15px !important;
  }
  .zauth-card-title {
    font-size: 19px !important;
    margin: 0 0 3px 0 !important;
  }
  .zauth-card-subtitle {
    font-size: 11.5px !important;
  }
  .zauth-notice-pill {
    padding: 7px 11px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }
  .zauth-field-box {
    margin-bottom: 11px !important;
  }
  .zauth-field-header {
    font-size: 9.5px !important;
    margin-bottom: 4px !important;
  }
  .zauth-input-container {
    border-radius: 10px !important;
  }
  .zauth-country-dropdown {
    font-size: 11.5px !important;
    padding: 0 9px !important;
  }
  .zauth-tel-input {
    padding: 9px 11px !important;
    font-size: 13.5px !important;
  }
  .zauth-cta-btn {
    padding: 11px 16px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    border-radius: 10px !important;
  }
  .zauth-card-footer {
    margin-top: 12px !important;
    padding-top: 10px !important;
    font-size: 10px !important;
  }
  .zauth-otp-target-card {
    padding: 7px 11px !important;
    margin-bottom: 10px !important;
  }
  .zauth-digit-grid {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  .zauth-digit-box {
    height: 42px !important;
    font-size: 19px !important;
    border-radius: 9px !important;
  }
  .zauth-timer-line {
    font-size: 10.5px !important;
    margin-bottom: 8px !important;
  }
}

/* 6. Viewport Height Adaptation: <= 660px (Short Laptops, Windows 125%-150% Scaling, Small Desktop Windows) */
@media (max-height: 660px) and (min-width: 768px) {
  #zenve-login-portal {
    padding: 4px 0 !important;
  }
  .zauth-layout-container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .zauth-card-wrapper {
    width: clamp(310px, 25vw, 375px) !important;
  }
  .zauth-login-card {
    padding: 13px 17px 11px !important;
    border-radius: 18px !important;
  }
  .zauth-card-header {
    margin-bottom: 6px !important;
  }
  .zauth-card-logo-badge {
    gap: 7px !important;
    margin-bottom: 4px !important;
  }
  .zauth-card-logo-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }
  .zauth-card-logo-icon img {
    width: 22px !important;
    height: 22px !important;
  }
  .zauth-card-brand-title {
    font-size: 13px !important;
  }
  .zauth-card-title {
    font-size: 16.5px !important;
    margin: 0 !important;
  }
  .zauth-card-subtitle {
    font-size: 10px !important;
  }
  .zauth-notice-pill {
    padding: 5px 8px !important;
    margin-top: 6px !important;
    margin-bottom: 7px !important;
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    border-radius: 8px !important;
  }
  .zauth-field-box {
    margin-bottom: 8px !important;
  }
  .zauth-field-header {
    font-size: 9px !important;
    margin-bottom: 3px !important;
  }
  .zauth-country-dropdown {
    font-size: 10.5px !important;
    padding: 0 7px !important;
  }
  .zauth-tel-input {
    padding: 7px 9px !important;
    font-size: 12.5px !important;
  }
  .zauth-cta-btn {
    padding: 9px 14px !important;
    font-size: 12px !important;
    margin-top: 6px !important;
    border-radius: 9px !important;
  }
  .zauth-card-footer {
    margin-top: 8px !important;
    padding-top: 8px !important;
    font-size: 9.5px !important;
  }
  .zauth-otp-target-card {
    padding: 5px 9px !important;
    margin-bottom: 7px !important;
  }
  .zauth-digit-grid {
    gap: 5px !important;
    margin-bottom: 7px !important;
  }
  .zauth-digit-box {
    height: 35px !important;
    font-size: 16px !important;
    border-radius: 7px !important;
  }
  .zauth-timer-line {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }
}

/* 7. Mobile and Narrow Device Graceful Fallback (< 768px) */
@media (max-width: 767px) {
  #zenve-login-portal {
    padding: 16px 12px !important;
    overflow-y: auto !important;
    align-items: center !important;
    justify-content: center !important;
    background-position: 40% center !important;
  }
  .zauth-layout-container {
    justify-content: center !important;
    padding: 0 !important;
    max-height: none !important;
    height: auto !important;
  }
  .zauth-card-wrapper {
    width: 100% !important;
    max-width: 380px !important;
    justify-content: center !important;
  }
}