/* Digit Sparx Proposal Desk — sign-in */
:root {
  --ink: #0b1426; --navy: #060d1c; --navy-2: #0c1a36; --blue: #2563eb; --sky: #38bdf8; --violet: #7c3aed; --spark: #facc15;
  --paper: #f4f7fc; --line: #d6deea; --muted: #64748b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--navy); }
.lg { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); }

/* ---- Left: brand + live proposal ---- */
.lg-art { position: relative; overflow: hidden; color: #fff; padding: 40px 56px 36px; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 88% 4%, rgba(37, 99, 235, .55), transparent 62%),
    radial-gradient(700px 480px at -5% 105%, rgba(124, 58, 237, .5), transparent 60%),
    linear-gradient(160deg, #081329 0%, #060d1c 55%, #0b0f2a 100%); }
.lg-art::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(125, 160, 230, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 160, 230, .07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(75% 65% at 60% 45%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(75% 65% at 60% 45%, #000 20%, transparent 80%); }
.lg-art > * { position: relative; }
.lg-bolt { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .07; pointer-events: none; }
.lg-logo { height: 34px; width: auto; align-self: flex-start; }
.lg-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 310px); gap: 36px; align-items: center; padding: 30px 0; }
.lg-copy h1 { font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: clamp(36px, 3.7vw, 56px); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.lg-copy h1 .l2 { color: #9cc3ff; }
.lg-copy h1 .l3 { color: var(--spark); }
.lg-copy p { color: #b6c5e2; font-size: 16.5px; line-height: 1.65; margin: 22px 0 0; max-width: 430px; }
.lg-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; max-width: 420px; }
.lg-steps li { display: flex; gap: 14px; align-items: center; color: #dbe6fa; font-size: 14.5px; font-weight: 600; }
.lg-steps b { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .9); }
.lg-steps span { color: #8ea3c7; font-weight: 500; }

/* mini proposal */
.mock { position: relative; }
.mock-doc { background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-2.5deg); }
.mock-cover { padding: 18px 18px 16px; color: #fff; background: radial-gradient(160px 120px at 100% 0%, rgba(37, 99, 235, .8), transparent 70%), radial-gradient(160px 120px at 0% 100%, rgba(124, 58, 237, .55), transparent 70%), #081329; }
.mock-cover img { height: 15px; display: block; }
.mock-cover .t { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.2; margin-top: 18px; }
.mock-cover .f { font-size: 11px; color: #9cb3da; margin-top: 4px; }
.mock-body { padding: 14px 18px 16px; }
.mock-row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; color: #334155; }
.mock-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.mock-total b { font-family: 'Space Grotesk', sans-serif; font-size: 16px; }
.mock-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.mock-sign svg { width: 92px; height: 34px; }
.mock-sign small { font-size: 10px; color: var(--muted); display: block; }
.stamp { position: absolute; right: -16px; top: -14px; padding: 6px 12px; border: 3px solid #22c55e; border-radius: 10px; color: #22c55e; background: rgba(6, 13, 28, .65);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 15px; transform: rotate(-12deg); backdrop-filter: blur(2px);
  animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
.ping { position: absolute; left: -34px; bottom: -22px; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); font-size: 12.5px; }
.ping i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-style: normal; font-weight: 800; }
.ping b { display: block; font-size: 13px; }
.ping span { color: var(--muted); font-size: 11.5px; }

.lg-foot { display: flex; gap: 34px; align-items: flex-end; color: #8ea3c7; font-size: 13px; }
.lg-foot b { display: block; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 26px; letter-spacing: -.02em; }

/* ---- Right: form ---- */
.lg-form { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--paper); }
.lg-form::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--violet)); }
.lg-card { width: 100%; max-width: 400px; }
.lg-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #1d4ed8, #7c3aed); box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .9); margin-bottom: 22px; }
.lg-badge img { width: 34px; height: 34px; filter: brightness(0) invert(1); }
.lg-mlogo { display: none; height: 28px; margin-bottom: 26px; }
.lg-card h2 { font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif; font-size: 32px; letter-spacing: -.03em; margin: 0; line-height: 1.1; }
.lg-card .lead { color: var(--muted); margin: 8px 0 28px; font-size: 15px; }
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 7px; }
.inp { position: relative; }
.inp svg.ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7b8aa3; pointer-events: none; }
.inp input { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 46px; font: inherit; font-size: 15.5px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.inp input::placeholder { color: #9aa8bd; }
.inp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.inp input:-webkit-autofill, .inp input:-webkit-autofill:hover, .inp input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.inp .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #7b8aa3; cursor: pointer; padding: 9px; border-radius: 9px; }
.inp .eye:hover { background: #eef2f8; }
.go { width: 100%; height: 54px; margin-top: 10px; border: 0; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  box-shadow: 0 16px 30px -14px rgba(79, 70, 229, .95), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .12s, filter .15s; }
.go:hover { filter: brightness(1.08); }
.go:active { transform: translateY(1px); }
.go:focus-visible, .inp .eye:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.go.is-loading { opacity: .75; pointer-events: none; }
.note { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.note svg { color: #16a34a; flex: none; }
.msg { display: flex; gap: 9px; align-items: center; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; font-size: 13.5px; }
.msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.msg.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

@media (max-width: 1180px) { .lg-main { grid-template-columns: minmax(0, 1fr); } .mock { display: none; } }
@media (max-width: 900px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-art { display: none; }
  .lg-form { min-height: 100vh; }
  .lg-mlogo { display: block; }
  .lg-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }
