/* ═══════════════════════════════════════════════════════════
   JDN ID · auth-id.joaodeusneto.pt
   Mesma família visual do Treino / Finanças / Calendar / Faculdade
   ═══════════════════════════════════════════════════════════ */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg: #0b0d10; --bg2: #101317; --card: #14181d; --card2: #1a1f25;
  --line: #242b33; --line2: #2f3740;
  --tx: #eef2f5; --tx2: #a4afba; --tx3: #6c7885;
  --acc: #c6f432; --ink: #0d1108;
  --red: #ff5d6c; --ok: #3ee6b0; --warn: #ffd23f;
  --r: 20px; --r-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --num: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body { min-height: 100vh; min-height: 100dvh; position: relative; overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
a { color: var(--acc); }
h1 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 18px; text-align: center; font-weight: 800; }
h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 10px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.xs { width: 13px; height: 13px; vertical-align: -2px; }
.muted { color: var(--tx2); } .dim { color: var(--tx3); } .tx { color: var(--tx); }
.center { text-align: center; } .sm { font-size: 13px; } .sp { flex: 1; min-width: 0; }
::selection { background: var(--acc); color: var(--ink); }

/* Fundo: brilho na cor do serviço */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -180px, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, color-mix(in srgb, var(--acc) 7%, transparent), transparent 70%); }
.glow::after { content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0, #000 10%, transparent 65%); }
body > * { position: relative; z-index: 1; }

/* Marca (à FCUL: logótipo + nome + descrição) */
.brandbar { display: flex; justify-content: center; padding: 48px 16px 30px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--tx); }
.brand img { width: 56px; height: 56px; border-radius: 15px; object-fit: contain; box-shadow: 0 0 0 1px var(--line2), 0 12px 30px rgba(0,0,0,.4); }
.brand-txt { display: flex; align-items: center; gap: 14px; }
.brand-txt b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand-txt em { font-style: normal; color: var(--acc); }
.brand-txt small { font-size: 12px; line-height: 1.3; color: var(--tx2); border-left: 1px solid var(--line2); padding-left: 14px; font-weight: 500; }

/* Cartão central */
.center-page main.card { margin: 0 auto; }
.card { width: min(440px, calc(100% - 32px)); background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line);
  border-radius: 24px; padding: 26px 28px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(10px); }
.card.narrow { width: min(420px, calc(100% - 32px)); }

.svc-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 18px; }
.svc-chip small { display: block; font-size: 11px; color: var(--tx3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.svc-chip b { font-size: 16px; }
.svc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c, var(--acc)) 16%, transparent); color: var(--c, var(--acc)); }

.steps { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; color: var(--tx3); font-weight: 600; }
.step { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--card2); border: 1px solid var(--line2); }
.step.on { color: var(--tx); } .step.on i { background: var(--acc); color: var(--ink); border-color: var(--acc); }
.step.done i { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc); border-color: transparent; }
.step-line { flex: 1; height: 1px; background: var(--line2); }

.form { display: flex; flex-direction: column; }
.lbl { font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--tx); }
.inp { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line2); outline: none; margin-bottom: 16px; transition: border-color .15s, box-shadow .15s; font-size: 16px; }
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 15%, transparent); }
.inp:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--bg) inset; -webkit-text-fill-color: var(--tx); }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 56px; }
.pw-eye { position: absolute; right: 5px; top: 5px; width: 44px; height: 40px; border-radius: 9px; border: 0; background: var(--card2); color: var(--tx2); display: grid; place-items: center; cursor: pointer; }
.pw-eye[aria-pressed=true] { color: var(--acc); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--tx2); margin: 0 0 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); margin: 1px 0 0; flex: none; }

.geo-btn { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; border: 1px dashed var(--line2); background: transparent; color: var(--tx2);
  padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; cursor: pointer; margin-bottom: 18px; }
.geo-btn:hover { border-color: var(--tx3); color: var(--tx); }
.geo-btn.on { border-style: solid; border-color: color-mix(in srgb, var(--acc) 50%, transparent); color: var(--tx); background: color-mix(in srgb, var(--acc) 7%, transparent); }
.geo-btn.on .ico { color: var(--acc); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--card2); color: var(--tx); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: #2a1418; border-color: #5a2630; color: #ff8a95; }
.btn.ghost { background: transparent; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.row-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); color: var(--tx2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--red); border-color: #5a2630; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 16px; border: 1px solid; }
.alert .ico { width: 18px; height: 18px; margin-top: 1px; }
.alert.err { background: #2a1418; border-color: #5a2630; color: #ffb3ba; }
.alert.ok { background: #0f241d; border-color: #1f4a3b; color: #9ff0d4; }
.alert.warn { background: #2a2410; border-color: #5a4b1c; color: #ffe38a; }

.otp { display: flex; gap: 8px; justify-content: center; margin: 4px 0 18px; }
.otp input { width: 50px; height: 60px; text-align: center; font-size: 26px; font-weight: 700; font-family: var(--num); border-radius: 14px; background: var(--bg); border: 1px solid var(--line2); outline: none; }
.otp input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 15%, transparent); }
.otp input:nth-child(3) { margin-right: 10px; }
.ctx { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 18px; display: grid; gap: 6px; font-size: 13px; color: var(--tx2); }
.ctx div { display: flex; gap: 9px; align-items: center; }
.ctx .ico { width: 16px; height: 16px; color: var(--tx3); }
.links { display: flex; justify-content: space-between; margin-top: 14px; }
.links form { margin: 0; }
.link { background: none; border: 0; color: var(--acc); font-weight: 600; cursor: pointer; padding: 6px 2px; font-size: 14px; }
.state-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 4px auto 10px; }
.state-ico .ico { width: 28px; height: 28px; }
.state-ico.ok { background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc); }
.state-ico.bad { background: #2a1418; color: #ff8a95; }

.svc-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 26px 16px 0; }
.svc-strip a { display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--tx2); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.svc-strip a .ico { width: 15px; height: 15px; color: var(--c); }
.svc-strip a:hover { color: var(--tx); border-color: var(--line2); }
.foot { text-align: center; color: var(--tx3); font-size: 12px; padding: 16px 16px 36px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.foot .ico { width: 14px; height: 14px; }

/* ─────────── Painel ─────────── */
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 6px; }
.topbar .brandbar { padding: 0; }
.topbar .brand img { width: 42px; height: 42px; border-radius: 12px; }
.topbar .brand-txt b { font-size: 22px; }
.hello { padding: 26px 0 18px; }
.hello h1 { text-align: left; font-size: 30px; margin: 0 0 4px; }
.grid { display: grid; gap: 12px; }
.svc-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); margin-bottom: 18px; }
.svc { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--tx); text-decoration: none; transition: border-color .15s, transform .15s; }
.svc:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.svc b { font-size: 16px; margin-top: 6px; } .svc small { color: var(--tx2); font-size: 13px; }
.svc-go { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c); font-weight: 600; }
.svc-go .ico { width: 14px; height: 14px; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pc-head form { margin: 0; }
.sess, .log { list-style: none; margin: 0; padding: 0; }
.sess li, .log li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.sess li:first-child, .log li:first-child { border-top: 0; }
.sess li form { margin: 0; }
.sess-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--line); color: var(--tx2); flex: none; }
.sess li.mine .sess-ico { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.tag { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--acc); padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }
.dot { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 11.5px; color: var(--tx2); font-weight: 600; }
.dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tx3); margin-top: 7px; flex: none; }
.lg-dot.ok { background: var(--ok); } .lg-dot.bad { background: var(--red); }
.log time { white-space: nowrap; }
.pw-form { max-width: 380px; }
.pw-form .btn { align-self: flex-start; }

@media (max-width: 520px) {
  .brandbar { padding: 32px 16px 22px; }
  .brand img { width: 46px; height: 46px; }
  .brand-txt b { font-size: 25px; }
  .card { padding: 22px 18px 22px; border-radius: 22px; }
  .otp { gap: 6px; } .otp input { width: 44px; height: 54px; font-size: 22px; }
  .otp input:nth-child(3) { margin-right: 6px; }
  .topbar .brand-txt small { display: none; }
  .topbar .btn span { display: none; }
  .hello h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
