/* ===========================================================
   PropCola Connect — Landing / Auth styles (styles.css)
   Browser-first, mobile-responsive, light & calm.
   =========================================================== */

:root {
  --bg-100: #f6f8fc;
  --bg-200: #eef3fb;
  --card: #ffffff;
  --accent: #3c52d3;
  --accent-600: #2f43b8;
  --accent-50: #eef1ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #6b7280;
  --line: #e5e7eb;
  --success: #16a34a;
  --danger: #ef4444;
  --warn: #f59e0b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-xs: 0 4px 10px rgba(17, 24, 39, 0.06);
  --shadow-sm: 0 8px 28px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 60px rgba(17, 24, 39, 0.12);

  --ease: cubic-bezier(0.2, 0.9, 0.28, 1);
  --max-w: 1100px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  background: linear-gradient(180deg, #eaf0ff 0%, #f6f8fc 60%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* =========== Layout shell =========== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-topbar {
  padding: 18px 22px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.brand { display: inline-flex; gap: 12px; align-items: center; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(160deg, var(--accent), #6478ff);
  color: #fff; font-weight: 800; letter-spacing: 0.5px;
  display: grid; place-items: center; font-size: 14px;
  box-shadow: var(--shadow-xs);
}
.brand-text .site-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.brand-text .site-title span {
  color: var(--accent-600);
  font-weight: 700;
}

/* =========== Main split =========== */
.auth-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 22px 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.auth-pitch {
  padding: 20px 0;
}
.auth-pitch h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 14px;
}
.auth-pitch p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 50ch;
  margin-bottom: 20px;
}

.auth-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
}
.auth-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
}
.auth-checklist li span {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-50);
  color: var(--accent-600);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

/* =========== Auth card =========== */
.auth-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
}
.auth-tabs .tab {
  background: transparent;
  border: 0;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.18s var(--ease);
}
.auth-tabs .tab.active {
  color: var(--accent-600);
  border-bottom-color: var(--accent);
  background: var(--card);
}

.auth-body { padding: 22px 22px 18px; }

.auth-form { display: grid; gap: 12px; }
.auth-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input:focus {
  border-color: var(--accent-400, #5a75f0);
  box-shadow: 0 0 0 3px rgba(60, 82, 211, 0.14);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}

.form-actions { margin-top: 6px; }
.form-foot {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
}
.form-foot a { color: var(--accent-600); }

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), opacity 0.15s ease;
}
.btn:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn.block { width: 100%; }
.btn.secondary {
  background: #f3f4f6;
  color: var(--ink);
  box-shadow: none;
}
.btn.secondary:hover { background: #e9ecf2; }
.btn.danger {
  background: var(--danger);
}
.btn.danger:hover { background: #dc2626; }

.btn.ghost {
  background: transparent;
  color: var(--accent-600);
  box-shadow: none;
}

.icon-btn {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 8px;
}
.icon-btn:hover { background: #f1f3f9; color: var(--ink); }

/* =========== Modals =========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  place-items: center;
  z-index: 9999;
  padding: 16px;
}
.modal-backdrop[aria-hidden="false"] { display: grid; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-body { padding: 16px; overflow: auto; flex: 1; }
.modal-body h4 { font-size: 14px; margin-top: 12px; margin-bottom: 4px; color: var(--ink); }
.modal-body p { margin-bottom: 8px; }

.modal-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbff;
}

.auth-foot {
  text-align: center;
  padding: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* =========== Mobile =========== */
@media (max-width: 820px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
  }
  .auth-pitch { text-align: center; padding-top: 0; }
  .auth-pitch p { margin-left: auto; margin-right: auto; }
  .auth-checklist { display: none; } /* keep auth screen tight on phones */
  .auth-card { justify-self: stretch; max-width: none; }
  .brand-text small { display: none; }
}