:root {
  --primary: #6366f1; --primary-dark: #4f46e5; --accent-soft: #eef0ff;
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e2e8f0; --danger: #dc2626;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #f6f7fb; -webkit-font-smoothing: antialiased; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* left: soft pastel banner, same look as the dashboard header */
.visual {
  position: relative; overflow: hidden; color: var(--ink); padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: radial-gradient(circle at 88% 8%, #fbcfe8 0, transparent 38%), radial-gradient(circle at 55% 115%, #bae6fd 0, transparent 45%), linear-gradient(140deg, #e0e7ff 0%, #ede9fe 55%, #fae8ff 100%);
}
.visual::before, .visual::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.visual::before { width: 340px; height: 340px; right: -110px; bottom: -150px; background: rgba(99,102,241,.14); }
.visual::after { width: 170px; height: 170px; left: -60px; top: 32%; background: rgba(236,72,153,.12); }
.visual > * { position: relative; z-index: 1; }
.hero { width: 100%; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 24px 34px rgba(67,56,202,.28)); }
.pitch h2 { font-size: 31px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.pitch p { margin-top: 10px; color: var(--ink2); line-height: 1.6; max-width: 460px; }
.chips { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: rgba(255,255,255,.8); border: 1px solid #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2); box-shadow: 0 4px 12px -6px rgba(67,56,202,.35); }
.chips li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--c, var(--primary)); }
.chips li:nth-child(1) { --c: #f97316; } .chips li:nth-child(2) { --c: #22c55e; } .chips li:nth-child(3) { --c: #ec4899; }
.chips li:nth-child(4) { --c: #f59e0b; } .chips li:nth-child(5) { --c: #10b981; } .chips li:nth-child(6) { --c: #d946ef; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: .08em; color: var(--ink); }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 20px; letter-spacing: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(99,102,241,.8); }
.mobile-brand { display: none; margin-bottom: 24px; }

/* right: form panel */
.panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px;
  background: radial-gradient(circle at 100% 0, #fce7f3 0, transparent 38%), radial-gradient(circle at 0 100%, #e0e7ff 0, transparent 42%), #f6f7fb; }
.card { width: 100%; max-width: 440px; background: #fff; border: 1px solid rgba(99,102,241,.12); border-radius: 20px; padding: 32px; box-shadow: 0 1px 2px rgba(30,27,75,.05), 0 24px 48px -24px rgba(67,56,202,.35); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f3fb; border-radius: 11px; padding: 4px; margin-bottom: 26px; }
.tabs a { text-align: center; padding: 9px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs a.active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(30,27,75,.12); }
h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.sub { color: var(--muted); margin: 6px 0 22px; font-size: 14px; }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; transition: .15s; }
input::placeholder { color: #94a3b8; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw { position: relative; }
.pw input { padding-right: 60px; }
.toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--primary-dark); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px; }
.msg { font-size: 13px; color: var(--danger); min-height: 0; }
.msg:not(:empty) { background: #fef2f2; border: 1px solid #fecaca; padding: 9px 12px; border-radius: 10px; }
.btn { background: var(--grad); color: #fff; border: 0; padding: 13px; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s; box-shadow: 0 12px 24px -12px rgba(99,102,241,.9); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(99,102,241,.95); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.alt a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.foot { margin-top: 22px; font-size: 12px; color: #94a3b8; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .visual { display: none; }
  .mobile-brand { display: flex; }
  .card { padding: 24px 20px; }
}
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }

/* image placeholders (replace by adding public/img/login-1.jpg, login-2.jpg, login-3.jpg) */
.gallery { flex: 1; min-height: 300px; max-height: 420px; width: 100%; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.tile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 22px 40px -22px rgba(67,56,202,.55); display: grid; place-items: center; text-align: center; color: rgba(67,56,202,.55); background-size: cover; background-position: center; }
.tile span { display: grid; gap: 6px; justify-items: center; font-size: 13px; font-weight: 700; }
.tile small { font-weight: 500; font-size: 11px; opacity: .75; }
.tile svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t1 { grid-row: span 2; background-image: url(/img/login-1.jpg), linear-gradient(160deg, #c7d2fe, #ddd6fe 60%, #fbcfe8); }
.t2 { background-image: url(/img/login-2.jpg), linear-gradient(135deg, #bae6fd, #c7d2fe); }
.t3 { background-image: url(/img/login-3.jpg), linear-gradient(135deg, #fde68a, #fbcfe8); color: rgba(180,83,9,.55); }
