/* ZAP SMS Login — match reference design */
:root {
  --zap-blue: #2463EB;
  --zap-blue-deep: #315CFA;
  --zap-cyan: #16C7C5;
  --zap-navy: #172B57;
  --zap-muted: #60789B;
  --zap-border: #DCE5F2;
  --zap-green: #22C55E;
  --zap-radius: 12px;
  --zap-font: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  font-family: var(--zap-font);
  color: var(--zap-navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--zap-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.zap-login {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  /* Explicit % tracks so right panel cannot be pushed off-screen */
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Transform-only — never hide content with opacity:0 (avoids reload FOUC) */
@keyframes zapRise {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

@keyframes zapPing {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes zapCheckPop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes zapCheckDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes zapPhonePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(36, 99, 235, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(36, 99, 235, 0); }
}

@keyframes zapSoftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes zapTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes zapFadeUp {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .zap-login__brand-inner,
  .zap-login__auth-inner,
  .zap-card--lead,
  .zap-card--valid,
  .zap-card--call,
  .zap-card--dots,
  .zap-typing i,
  .zap-card__online,
  .zap-card__online::after,
  .zap-card__check,
  .zap-card__check svg path,
  .zap-card__phone,
  .zap-trusted__label,
  .zap-trusted__row li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .zap-features li:hover .zap-features__ico,
  .zap-trusted__row li:hover,
  .zap-trusted__row li:hover svg,
  .zap-card--lead:hover .zap-card__ico-chat,
  .zap-card--valid:hover .zap-card__check,
  .zap-card--call:hover .zap-card__phone {
    transform: none !important;
    filter: none !important;
  }
}

/* ========== LEFT ========== */
.zap-login__brand {
  position: relative;
  overflow: hidden;
  min-width: 0;
  /* Fallback only — artwork paints pale top through deep blue (continuous) */
  background: #ddeffd;
  padding: 48px 48px 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  /* Option 1: thin blue-grey divider (full height) */
  border-right: 1px solid rgba(120, 150, 190, 0.18);
  z-index: 1;
}

/*
  Artwork via <img> (reliable positioning). Loader covers until PNG loads.
*/
.zap-login__shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.zap-login__shapes-img {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 112%;
  max-width: none;
  height: 70%;
  object-fit: cover;
  object-position: 78% 100%;
  /* Keep wave below AI Agent text */
  transform: translateY(20%);
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 22%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 22%,
    #000 100%
  );
}

/* Full-page loader — hides FOUC / late artwork */
.zap-login-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.zap-login-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.zap-login-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.zap-login-loader__inner img {
  height: 36px;
  width: auto;
  display: block;
}
.zap-login-loader__spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #E2E8F0;
  border-top-color: var(--zap-blue);
  animation: zapLoaderSpin 0.7s linear infinite;
}
@keyframes zapLoaderSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .zap-login-loader__spin { animation: none; border-top-color: var(--zap-blue); }
}

.zap-login__brand-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  width: 100%;
  min-width: 0;
  padding-bottom: 120px;
  animation: zapRise 0.45s ease;
}

.zap-login__logo {
  display: inline-flex;
  margin-bottom: 6px;
}
.zap-login__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.zap-login__tagline {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--zap-navy);
}

.zap-login__headline {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--zap-navy);
}
.zap-login__headline em {
  font-style: normal;
  color: var(--zap-blue);
  font-weight: 700;
}

.zap-login__desc {
  margin: 0 0 20px;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--zap-muted);
  font-weight: 400;
}

/* Compact illustration — keep features left of arrow zone */
.zap-illust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 22px 24px;
  align-items: start;
  max-width: 480px;
  margin-top: 4px;
}

.zap-illust__cards {
  position: relative;
  padding-bottom: 14px;
}

.zap-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(23, 43, 87, 0.1), 0 2px 8px rgba(23, 43, 87, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.zap-card--lead {
  padding: 14px 16px 12px;
  position: relative;
  z-index: 3;
  animation: zapFadeUp 0.4s ease 0.05s both;
}

.zap-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.zap-card__ico-chat {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--zap-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zap-card--lead:hover .zap-card__ico-chat {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}
.zap-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--zap-navy);
}
.zap-card__online {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zap-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}
.zap-card__online::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--zap-green);
  animation: zapPing 1.8s ease-out infinite;
  pointer-events: none;
}
.zap-card__msg {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #3D4F73;
}
.zap-card__time {
  display: block;
  margin-top: 8px;
  text-align: right;
  font-size: 11px;
  color: #9AAAC2;
}

.zap-card--valid {
  margin-top: 14px;
  margin-left: 20px;
  width: calc(100% - 12px);
  padding: 12px 14px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: zapFadeUp 0.4s ease 0.1s both;
}
.zap-card__check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--zap-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: zapCheckPop 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) 0.2s both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zap-card__check svg path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: zapCheckDraw 0.4s ease 0.35s forwards;
}
.zap-card--valid:hover .zap-card__check {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}
.zap-card__valid-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--zap-navy);
}
.zap-card__valid-phone {
  font-size: 12.5px;
  color: #4A5D82;
  margin-top: 2px;
}

.zap-card--call {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  width: auto;
  position: relative;
  z-index: 4;
  animation: zapFadeUp 0.4s ease 0.15s both;
}
.zap-card__phone {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--zap-blue);
  display: grid;
  place-items: center;
  animation: zapPhonePulse 2.4s ease-in-out 0.9s infinite;
  transition: transform 0.25s ease;
}
.zap-card--call:hover .zap-card__phone {
  animation: none;
  transform: scale(1.12) rotate(12deg);
}
.zap-card__call-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--zap-navy);
}
.zap-card__call-text span {
  font-weight: 500;
  color: var(--zap-muted);
  margin-left: 2px;
}

.zap-card--dots {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 5;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 43, 87, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.95);
  animation: zapFadeUp 0.4s ease 0.2s both, zapSoftFloat 3.2s ease-in-out 0.8s infinite;
}
.zap-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.zap-typing i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8FA3C4;
  animation: zapTypingDot 1.2s ease-in-out infinite;
}
.zap-typing i:nth-child(2) { animation-delay: 0.15s; }
.zap-typing i:nth-child(3) { animation-delay: 0.3s; }

.zap-features {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.zap-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}
.zap-features__ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(23, 43, 87, 0.09);
  border: 1px solid rgba(220, 229, 242, 0.95);
  color: var(--zap-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.zap-features li:hover .zap-features__ico {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 24px rgba(36, 99, 235, 0.18);
  border-color: rgba(36, 99, 235, 0.35);
  color: var(--zap-blue-deep);
}
.zap-features__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--zap-blue);
  line-height: 1.25;
  transition: color 0.2s ease;
}
.zap-features li:hover .zap-features__title {
  color: var(--zap-blue-deep);
}
.zap-features__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--zap-muted);
}

/* Trusted — over deep blue of artwork */
.zap-trusted {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 40px 26px 48px;
  color: #fff;
  background: transparent;
  box-sizing: border-box;
}
.zap-trusted__label {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  animation: zapFadeUp 0.4s ease 0.2s both;
}
.zap-trusted__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}
.zap-trusted__row li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  animation: zapFadeUp 0.35s ease both;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.zap-trusted__row li:nth-child(1) { animation-delay: 0.22s; }
.zap-trusted__row li:nth-child(2) { animation-delay: 0.28s; }
.zap-trusted__row li:nth-child(3) { animation-delay: 0.34s; }
.zap-trusted__row li:nth-child(4) { animation-delay: 0.4s; }
.zap-trusted__row li:nth-child(5) { animation-delay: 0.46s; }
.zap-trusted__row li:nth-child(6) { animation-delay: 0.52s; }
.zap-trusted__row li:last-child { border-right: 0; }
.zap-trusted__row li {
  cursor: default;
}
.zap-trusted__row li:hover {
  transform: translateY(-4px);
}
.zap-trusted__row li:hover svg {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}
.zap-trusted__row li:hover span {
  color: #fff;
}
.zap-trusted__row span {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}
.zap-trusted__row svg {
  color: #fff;
  opacity: 0.95;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

/* ========== RIGHT ========== */
.zap-login__auth {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  padding: 40px clamp(28px, 3.5vw, 48px) 28px;
  /* Soft shadow into white panel (brand overflow clips its own box-shadow) */
  border-left: 0;
  box-shadow: inset 6px 0 18px rgba(35, 65, 110, 0.10);
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.zap-login__auth-inner {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: auto;
  animation: zapRise 0.4s ease;
}

/* Mobile-only logo (hidden on desktop split view) */
.zap-login__mobile-logo {
  display: none;
  margin: 0 auto 28px;
  text-align: center;
}
.zap-login__mobile-logo img {
  height: 34px;
  width: auto;
}

.zap-login__auth-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--zap-navy);
  line-height: 1.15;
}

.zap-login__auth-sub {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--zap-muted);
}

.zap-login__alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13px;
}

.zap-field { margin-bottom: 18px; }
.zap-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zap-navy);
}

.zap-input {
  position: relative;
  display: flex;
  align-items: center;
}
.zap-input__ico {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.zap-input__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.zap-input__toggle:hover { color: var(--zap-navy); background: #F5F8FF; }
.zap-input__toggle svg { display: block; flex-shrink: 0; }
.zap-input__toggle svg.is-hidden,
.zap-input__toggle svg[hidden] { display: none !important; }

.zap-input input {
  width: 100%;
  height: 50px;
  padding: 0 44px;
  border: 1px solid var(--zap-border);
  border-radius: var(--zap-radius);
  background: #F8FAFD;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--zap-navy);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.zap-input input::placeholder { color: #A8B7CE; }
.zap-input input:focus {
  outline: none;
  background: #fff;
  border-color: var(--zap-blue);
  box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.12);
}
.zap-input input.is-invalid { border-color: #F87171; }

.zap-login__forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 24px;
}
.zap-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--zap-navy);
  user-select: none;
}
.zap-remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--zap-blue);
  cursor: pointer;
  flex-shrink: 0;
}
.zap-login__forgot { font-size: 13px; font-weight: 600; }

.zap-btn-primary {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #315CFA 0%, #16C7C5 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(49, 92, 250, 0.22);
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
}
.zap-btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(49, 92, 250, 0.28);
  text-decoration: none;
}
.zap-btn-primary:active { transform: scale(0.99); }
.zap-btn-primary:disabled { opacity: 0.78; cursor: wait; filter: none; }

.zap-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: #A8B7CE;
  font-size: 13px;
}
.zap-or::before, .zap-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.zap-social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.zap-social__btn {
  height: 46px;
  min-width: 0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.zap-social__btn:hover {
  background: #F8FAFF;
  border-color: #C9D7EC;
  text-decoration: none;
  color: var(--zap-navy);
}
.zap-social__btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.zap-login__signup {
  margin: 26px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--zap-muted);
}
.zap-login__signup a {
  font-weight: 700;
  color: var(--zap-blue);
}

.zap-login__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 32px auto 0;
  padding-top: 8px;
  font-size: 12px;
  color: #9AAAC2;
  box-sizing: border-box;
}
.zap-login__footer nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zap-login__footer a {
  color: #9AAAC2;
  text-decoration: none;
}
.zap-login__footer a:hover { color: var(--zap-blue); }
.zap-login__footer .sep { opacity: 0.55; }

/* ========== Responsive ========== */

/* Large tablet / small laptop — keep split, tighten left */
@media (max-width: 1200px) {
  .zap-login__brand { padding: 40px 36px 0; }
  .zap-login__brand-inner { padding-bottom: 110px; max-width: 480px; }
  .zap-trusted { padding: 18px 28px 22px 36px; }
  .zap-trusted__row span { font-size: 10.5px; }
  .zap-illust {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    gap: 18px 18px;
    max-width: 440px;
  }
}

@media (max-width: 1100px) {
  .zap-login__brand { padding: 32px 28px 0; }
  .zap-login__auth { padding: 32px 32px 24px; }
  .zap-trusted { padding: 16px 20px 20px 28px; }
  .zap-trusted__row li { padding: 0 2px; gap: 5px; }
  .zap-trusted__row span { font-size: 10px; }
  .zap-trusted__row svg { width: 18px; height: 18px; }
  .zap-illust { gap: 16px; }
  .zap-login__headline { font-size: clamp(24px, 2.4vw, 30px); }
  .zap-login__desc { font-size: 13.5px; }
  .zap-features { gap: 12px; }
  .zap-features__title { font-size: 13px; }
  .zap-features__sub { font-size: 11.5px; }
}

/* Narrow tablet — still split but compact brand */
@media (max-width: 980px) and (min-width: 901px) {
  .zap-login { grid-template-columns: minmax(0, 50%) minmax(0, 50%); }
  .zap-login__brand-inner { padding-bottom: 100px; }
  .zap-illust {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
  .zap-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .zap-features li { flex: 1 1 42%; }
  .zap-card--dots { display: none; }
}

/* Phone / small tablet — form only */
@media (max-width: 900px) {
  .zap-login { grid-template-columns: 1fr; }
  .zap-login__brand { display: none; }
  .zap-login__mobile-logo {
    display: block;
    margin: 0 auto 24px;
  }
  .zap-login__auth {
    border-left: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    padding:
      max(28px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    min-height: 100vh;
    min-height: 100dvh;
  }
  .zap-login__auth-inner {
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
    min-width: 0;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .zap-login__auth-title {
    font-size: clamp(26px, 7vw, 32px);
    text-align: center;
  }
  .zap-login__auth-sub {
    text-align: center;
    margin-bottom: 28px;
    font-size: 14.5px;
  }
  #loginForm,
  .zap-field,
  .zap-input,
  .zap-btn-primary,
  .zap-social {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  /* Prevent iOS input zoom */
  .zap-input input { font-size: 16px; height: 52px; }
  .zap-btn-primary { height: 52px; font-size: 15.5px; }
  .zap-login__forgot-row {
    flex-wrap: wrap;
    row-gap: 10px;
    width: 100%;
  }
  .zap-login__footer {
    margin-top: 28px;
    max-width: 420px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .zap-social { gap: 8px; }
  .zap-social__btn {
    font-size: 12.5px;
    gap: 6px;
    padding: 0 6px;
    height: 48px;
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .zap-login__auth {
    padding:
      max(24px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  .zap-login__mobile-logo { margin-bottom: 20px; }
  .zap-login__mobile-logo img { height: 30px; }
  .zap-login__auth-sub { margin-bottom: 24px; }
  .zap-field { margin-bottom: 16px; }
  .zap-or { margin: 22px 0 14px; }
  .zap-login__signup { margin-top: 22px; font-size: 13.5px; }
  /* Social: keep icons + short labels readable */
  .zap-social__btn { font-size: 12px; min-height: 46px; }
}

@media (max-width: 480px) {
  .zap-login__auth-title { font-size: 26px; }
  .zap-remember { font-size: 12.5px; }
  .zap-login__forgot { font-size: 12.5px; }
  .zap-login__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 24px;
  }
  .zap-login__footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }
  /* Icon-forward social on very narrow screens */
  .zap-social {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .zap-social__btn {
    flex-direction: column;
    gap: 4px;
    height: auto;
    min-height: 56px;
    padding: 10px 4px;
    font-size: 11px;
  }
  .zap-social__btn svg { width: 20px; height: 20px; }
}

@media (max-width: 360px) {
  .zap-login__auth-title { font-size: 24px; }
  .zap-social__btn { font-size: 10.5px; padding: 8px 2px; }
  .zap-btn-primary { height: 50px; }
}
