@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #fdf6fb; --line: rgba(120,40,100,0.10);
  --brand: #d0287a; --ink: #4a1942; --ink-2: #6e4466; --muted: #9a7f93;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }
a { text-decoration: none; }
[hidden] { display: none !important; }

.blob { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.b1 { width: 560px; height: 560px; left: -200px; top: -120px; background: radial-gradient(circle, #a855f7, transparent 70%); opacity: .45; animation: d1 16s ease-in-out infinite; }
.b2 { width: 480px; height: 480px; right: -180px; bottom: -160px; background: radial-gradient(circle, #f472b6, transparent 70%); opacity: .45; animation: d2 19s ease-in-out infinite; }
.b3 { width: 360px; height: 360px; right: 18%; top: 8%; background: radial-gradient(circle, #f0abfc, transparent 70%); opacity: .5; animation: d1 22s ease-in-out infinite reverse; }
@keyframes d1 { 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes d2 { 50% { transform: translate(-70px, -30px) scale(1.15); } }
@keyframes up { from { opacity: 0; transform: translateY(22px); } }

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 26px 24px; }
.logo img { height: 22px; width: auto; display: block; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--sans); color: var(--ink-2); padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s; }
.pill-link:hover { color: var(--brand); border-color: rgba(208,40,122,0.3); }
.pill-link svg { width: 16px; height: 16px; }

.main { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 18px 50px; }
.stack { width: 100%; max-width: 420px; animation: up .8s var(--ease) both; }
.card { position: relative; background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px 28px; box-shadow: 0 40px 80px rgba(120,40,100,0.14), 0 10px 24px rgba(120,40,100,0.06); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #d0287a, #9333ea); }

.tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px 6px 9px; border-radius: 999px; background: #fdeaf4; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(208,40,122,0.15); }
.h { font-family: "Bricolage Grotesque", var(--sans); font-weight: 800; font-size: 34px; line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 8px; }
.gr { background: linear-gradient(110deg, #d0287a, #9333ea); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }

form { display: grid; gap: 10px; margin: 0; }
label { font-size: 12.5px; font-weight: 600; margin-bottom: -2px; }
input { width: 100%; margin: 0; background: #fff; color: var(--ink); border: 1px solid rgba(120,40,100,0.16); border-radius: 12px; padding: 14px 15px; font: 15px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: var(--muted); }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(208,40,122,0.12); }
input.bad { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225,29,72,0.10); }
.field-err { display: none; margin: -2px 0 2px; font-size: 12.5px; font-weight: 500; color: #be123c; }
.field-err.show { display: block; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.eye:hover { color: var(--brand); background: #fdeaf4; }
.eye svg { width: 18px; height: 18px; }

.msg { display: none; align-items: center; gap: 9px; margin-top: 4px; padding: 12px 13px; border-radius: 12px; background: #fff1f4; border: 1px solid #fbc7d6; color: #be123c; font-size: 13.5px; font-weight: 600; }
.msg svg { flex: 0 0 17px; width: 17px; height: 17px; }
.msg.show { display: flex; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 15px 18px; background: linear-gradient(110deg, #e0559f 0%, #a855f7 50%, #e0559f 100%); background-size: 200% 100%; color: #fff; border: 0; border-radius: 12px; font: 600 15px var(--sans); cursor: pointer; transition: background-position .6s var(--ease), box-shadow .3s, transform .2s; }
.btn:hover { background-position: 100% 0; box-shadow: 0 12px 28px rgba(168,85,247,0.32); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.busy { pointer-events: none; opacity: .9; }
.btn.busy .arr { display: none; }
.spin { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.forgot { display: block; margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-2); }
.forgot:hover { color: var(--brand); }
.secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.secure svg { width: 14px; height: 14px; color: var(--brand); }
.help { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.help a { color: var(--brand); font-weight: 600; }
.foot { position: relative; z-index: 1; text-align: center; font-size: 12px; line-height: 1.7; color: var(--muted); padding: 0 18px 26px; }

/* dashboard */
.dash { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 30px 24px 60px; }
.dash-head { margin-bottom: 30px; animation: up .8s var(--ease) both; }
.dash-h { font-family: "Bricolage Grotesque", var(--sans); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: -0.045em; margin: 0 0 10px; }
.dash-sub { margin: 0; font-size: 15px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; animation: up .9s var(--ease) .1s both; }
.tile { background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 20px 50px rgba(120,40,100,0.06); }
.tile-k { font-size: 12.5px; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.tile-v { font-family: "Bricolage Grotesque", var(--sans); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.note { margin-top: 18px; padding: 20px 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(253,234,244,0.9), rgba(243,232,255,0.9)); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.note a { color: var(--brand); font-weight: 600; }
.loading { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; color: var(--muted); font-size: 14px; }

@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .top { padding: 18px 16px; }
  .card { padding: 28px 22px 24px; border-radius: 20px; }
  .h { font-size: 29px; }
  .dash { padding: 20px 16px 50px; }
}
@media (prefers-reduced-motion: reduce) { *, .blob { animation: none !important; transition: none !important; } }

/* dashboard extras */
.dash-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.acct { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; animation: up 1s var(--ease) .15s both; }
.acct > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.acct > div:last-child { border-right: 0; }
.acct-k { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.acct-v { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.section-h { margin: 34px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); text-transform: uppercase; }
.err-box { margin-top: 18px; padding: 16px 20px; border-radius: 14px; background: #fff1f4; border: 1px solid #fbc7d6; color: #be123c; font-size: 14px; font-weight: 600; }
@media (max-width: 800px) {
  .acct { grid-template-columns: 1fr; }
  .acct > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .acct > div:last-child { border-bottom: 0; }
}
