/* ============================================================
   Split login / signup screen (overrides the old centered card
   in dashboard.css — loaded after it so these rules win).
   WhatsApp-green theme. All form IDs preserved for auth-web.js.
   ============================================================ */

.auth-overlay.auth-split {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;      /* columns fill full height (overrides old align-items:center) */
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  background: #fff;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  overflow: hidden;
}
.auth-overlay.auth-split > * { animation: none; }

/* ---------- Left column: brand + forms ---------- */
.auth-split .auth-left {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px clamp(28px, 7vw, 104px);
  background: linear-gradient(180deg, #f6fdf9 0%, #ffffff 40%);
  min-width: 0;
}
.auth-split .auth-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: auto;
}
.auth-split .auth-logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 16px rgba(18,140,126,.35);
}
.auth-split .auth-brandname { font-size: 17px; font-weight: 800; color: #0f2b27; letter-spacing: -.2px; }

.auth-split .auth-left-body {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 24px 0;
  text-align: left;
}

.auth-split .auth-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(37,211,102,.12); color: #0f766e;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.auth-split .auth-badge i { width: 7px; height: 7px; border-radius: 50%; background: #25D366; }

.auth-split .auth-headline {
  margin: 0 0 12px;
  font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.6px;
  color: #0b1a17;
}
.auth-split .auth-subtitle {
  margin: 0 0 26px; font-size: 14.5px; line-height: 1.55; color: #64748b; text-align: left;
}

/* Hide the tab buttons — navigation is via the "Create account / Log in" links. */
.auth-split .auth-tabs { display: none; }

.auth-split .auth-form { display: block; }
.auth-split .auth-label {
  display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin: 14px 0 6px;
}
.auth-split .auth-form input[type=email],
.auth-split .auth-form input[type=text],
.auth-split .auth-form input[type=password] {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px; border-radius: 12px;
  border: 1.5px solid #e5e9ef; background: #fff;
  font-size: 14.5px; color: #0f172a; font-family: inherit; outline: none;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-split .auth-form input::placeholder { color: #9aa6b2; }
.auth-split .auth-form input:hover { border-color: #cfd8e3; }
.auth-split .auth-form input:focus {
  border-color: #25D366; background: #fff;
  box-shadow: 0 0 0 4px rgba(37,211,102,.16);
}
/* Kill the browser autofill grey/blue wash so fields stay white. */
.auth-split .auth-form input:-webkit-autofill,
.auth-split .auth-form input:-webkit-autofill:hover,
.auth-split .auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0 100px #fff inset;
  box-shadow: 0 0 0 100px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}
.auth-split .pw-field { position: relative; }
.auth-split .pw-field input { padding-right: 44px; }
.auth-split .pw-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 6px; cursor: pointer; color: #94a3b8;
  display: flex; align-items: center;
}
.auth-split .pw-eye:hover { color: #128C7E; }
.auth-split .pw-eye .eye-off { display: none; }
.auth-split .pw-eye.on .eye-open { display: none; }
.auth-split .pw-eye.on .eye-off { display: block; }

.auth-split .auth-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #64748b; margin: 12px 0 0; cursor: pointer;
}
.auth-split .auth-remember input { accent-color: #128C7E; }

.auth-split .auth-error { color: #dc2626; font-size: 12.5px; min-height: 16px; margin: 10px 0 0; }

.auth-split .auth-btn {
  width: 100%; margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #25D366 0%, #12a37e 55%, #075e54 120%);
  color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.auth-split .auth-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37,211,102,.45); filter: brightness(1.03); }
.auth-split .auth-btn:disabled { opacity: .7; cursor: default; transform: none; }

/* --- Google sign-in --- */

/* [hidden] needs the explicit rule because the flex/block displays below would
   otherwise override the UA stylesheet and show the slots with no client ID set. */
.auth-split [data-google-ui][hidden] { display: none; }

/* "OR" rule: a centred label with a hairline running out to each side. */
.auth-split .auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 0; color: #9aa6b2;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
}
.auth-split .auth-or::before,
.auth-split .auth-or::after {
  content: ''; flex: 1; height: 1px; background: #e5e9ef;
}

/* google-signin.js injects our own <button class="google-btn"> here (not Google's
   iframe), so it can simply be width:100% and stay aligned with the form at any
   viewport — no pixel measuring. */
.auth-split .google-btn-slot { margin-top: 14px; }

/* Google's branding rules require the unmodified 4-colour G on a plain white (or
   black) surface, so this button intentionally sits outside the green theme. */
.auth-split .google-btn {
  width: 100%; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border: 1.5px solid #e5e9ef; border-radius: 12px;
  background: #fff; color: #3c4043;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: background-color .15s, border-color .15s, box-shadow .2s;
}
.auth-split .google-btn:hover {
  background: #f7f8f9; border-color: #cfd8e3;
  box-shadow: 0 4px 12px rgba(16,24,40,.08);
}
.auth-split .google-btn:disabled { opacity: .6; cursor: default; }
.auth-split .google-btn .google-g { flex: none; }

.auth-split .auth-switch { text-align: center; margin: 16px 0 0; font-size: 13.5px; color: #64748b; }
.auth-split .auth-switch a { color: #128C7E; font-weight: 700; text-decoration: none; }
.auth-split .auth-switch a:hover { text-decoration: underline; }

.auth-split .auth-verify-note { font-size: 13px; color: #64748b; line-height: 1.5; margin: 6px 0 12px; }
.auth-split .auth-verify-actions { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.auth-split .auth-verify-actions a { color: #128C7E; font-weight: 600; text-decoration: none; }

.auth-split .auth-foot { margin-top: auto; text-align: center; font-size: 12px; color: #94a3b8; padding-top: 20px; }

/* ---------- Right column: brand / testimonial panel ---------- */
.auth-split .auth-right {
  flex: 1 1 45%;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 48px clamp(40px, 4vw, 64px);
  color: #06312a;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(700px 500px at 10% 110%, rgba(7,94,84,.35), transparent 60%),
    linear-gradient(155deg, #e6fbf0 0%, #6fdba7 48%, #16b169 82%, #0a9d5e 120%);
}
/* Soft decorative rings for depth */
.auth-split .auth-right::before,
.auth-split .auth-right::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.auth-split .auth-right::before {
  width: 320px; height: 320px; right: -120px; top: 8%;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%);
}
.auth-split .auth-right::after {
  width: 260px; height: 260px; right: 12%; bottom: -80px;
  border: 1.5px solid rgba(255,255,255,.35);
}
.auth-split .auth-right > * { position: relative; z-index: 1; }
.auth-split .auth-badge-outline {
  align-self: flex-start;
  padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid rgba(6,49,42,.35); color: #06312a;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; background: rgba(255,255,255,.35);
}
.auth-split .auth-quote { margin: auto 0; }
.auth-split .auth-quote-mark { font-size: 64px; line-height: .5; color: #0b7a5f; font-weight: 800; margin-bottom: 18px; }
.auth-split .auth-quote-text {
  font-size: 25px; line-height: 1.4; font-weight: 600; letter-spacing: -.3px; color: #06312a;
  margin: 0 0 26px; max-width: 30ch;
}
.auth-split .auth-quote-author { display: flex; align-items: center; gap: 12px; }
.auth-split .auth-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #128C7E, #075e54); color: #fff; font-weight: 800; font-size: 14px;
}
.auth-split .auth-author-meta b { display: block; font-size: 14px; color: #06312a; }
.auth-split .auth-author-meta span { font-size: 12.5px; color: #0b5a49; }

.auth-split .auth-right-bottom { border-top: 1px solid rgba(6,49,42,.15); padding-top: 22px; }
.auth-split .auth-stats { display: flex; gap: 34px; margin-bottom: 16px; }
.auth-split .auth-stats b { display: block; font-size: 24px; font-weight: 800; color: #06312a; }
.auth-split .auth-stats span { font-size: 12px; color: #0b5a49; }
.auth-split .auth-features { list-style: none; margin: 0; padding: 0; }
.auth-split .auth-features li {
  position: relative; padding-left: 26px; margin: 8px 0; font-size: 13.5px; color: #06403490; color: #084f40;
}
.auth-split .auth-features li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #0b7a5f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Responsive: stack, hide the brand panel on small screens ---------- */
@media (max-width: 880px) {
  .auth-split .auth-right { display: none; }
  .auth-split .auth-left { flex-basis: 100%; }
}
