/* ==========================================================================
   JustLeads — Gojiberry Split-Pane Auth & Waitlist Sandbox Styles
   LinkedIn Dark-Mode Edition
   ========================================================================== */

:root {
  --auth-bg: #11141a;
  --auth-input-bg: #161b24;
  --auth-border: rgba(148, 163, 184, 0.16);
  --auth-border-focus: #38bdf8;
  --li-blue: #0a66c2;
  --li-blue-hover: #0d74db;
  --li-sky: #38bdf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --emerald: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
}

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

html, body {
  height: 100%;
  background: var(--auth-bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

/* ─── Split-Pane Layout (Login_framework 460px Left + Perfect Geometric Right) ─── */
.auth-split {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: 100vh;
}

/* ─── Left Pane: Login_framework Canvas ─── */
.auth-left {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  background: var(--auth-bg);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  overflow-y: auto;
  z-index: 2;
}

.fw-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  width: fit-content;
  margin-bottom: 40px;
  transition: opacity 0.2s ease;
}

.fw-logo:hover {
  opacity: 0.85;
}

.fw-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a66c2 0%, #38bdf8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.45);
}

.auth-form-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.fw-heading {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 6px;
}

.fw-subtitle {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.field-label-row label {
  margin-bottom: 0;
}

.fw-switch-text {
  text-align: center;
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.fw-switch-btn {
  background: none;
  border: none;
  color: var(--li-sky);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  margin-left: 4px;
}

.fw-switch-btn:hover {
  text-decoration: underline;
}

.fw-terms {
  text-align: center;
  margin-top: 24px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.fw-terms a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fw-terms a:hover {
  color: #fff;
}

/* ─── Form Inputs ─── */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-border);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.eye-btn:hover { color: #fff; }

.field-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.82rem;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  accent-color: var(--li-blue);
  width: 15px;
  height: 15px;
}

.forgot-link {
  color: #e2e8f0;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
}

.forgot-link:hover {
  color: var(--li-sky);
  text-decoration: underline;
}

/* ─── Primary & OAuth Buttons ─── */
.btn-auth-primary {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #0a66c2 0%, #1574d8 100%);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
  transition: all 0.2s ease;
}

.btn-auth-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d74db 0%, #2589f5 100%);
  transform: translateY(-1px);
}

.btn-auth-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.btn-google {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--auth-border);
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 163, 184, 0.35);
}

.auth-alert {
  display: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.auth-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5;
}

.auth-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

.auth-alert.info {
  display: block;
  background: rgba(10, 102, 194, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
}

/* ─── Right Pane: Geometric Faceted LinkedIn Dark-Mode Panel ─── */
.auth-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  overflow: hidden;
  /* Gojiberry-inspired faceted geometric diamond weave in LinkedIn Blue / Deep Navy */
  background-color: #071324;
  background-image:
    linear-gradient(135deg, rgba(10, 102, 194, 0.34) 25%, transparent 25%),
    linear-gradient(225deg, rgba(56, 189, 248, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, rgba(10, 102, 194, 0.22) 25%, transparent 25%),
    linear-gradient(315deg, rgba(15, 23, 42, 0.85) 25%, #060e1d 25%);
  background-position: 60px 0, 60px 0, 0 0, 0 0;
  background-size: 120px 120px;
  background-repeat: repeat;
}

.auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(10, 102, 194, 0.32), rgba(4, 8, 16, 0.78) 75%);
  pointer-events: none;
}

.right-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}

.quote-card {
  background: rgba(10, 15, 28, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  margin-bottom: 36px;
}

.quote-mark {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  color: var(--li-sky);
  margin-bottom: 12px;
  display: block;
}

.quote-text {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
  color: #f8fafc;
  margin-bottom: 24px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66c2, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  border: 2px solid rgba(56, 189, 248, 0.45);
}

.quote-author strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.quote-author span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.trusted-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.trusted-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.trusted-tile {
  background: rgba(10, 15, 28, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

/* ─── Waitlist Sandbox Card (waitlist.html) ─── */
.waitlist-card {
  width: 100%;
  max-width: 460px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.waitlist-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(10, 102, 194, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.waitlist-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  margin-bottom: 14px;
}

.waitlist-pill.approved {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.waitlist-card h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.waitlist-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.waitlist-email-chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--auth-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  color: var(--li-sky);
  margin-bottom: 24px;
}

.waitlist-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-status {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-right { display: none; }
}
