/* Petra Hunter Business — Login (GPHB v1.4.0). Mesma identidade de /novo/: preto, dourado, Cormorant + Inter, leão coroado. */
@font-face { font-family: "Cormorant"; src: url(/assets/fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --black: #0b0b0b; --coal: #121110; --coal-2: #1a1814;
  --gold: #c6a45b; --gold-light: #ead9ac; --gold-dark: #8a6d2d;
  --on-dark: #d9d5cb; --muted: #a7a194; --line: rgba(198,164,91,.22); --danger: #e58a7a;
  --serif: "Cormorant", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font: 16px/1.6 var(--sans); color: var(--on-dark);
  background: radial-gradient(1100px 700px at 18% 30%, #231c0e 0%, transparent 60%), radial-gradient(900px 600px at 90% 100%, #17130b 0%, transparent 60%), var(--black);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); }
.dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.spot { position: fixed; width: 620px; height: 620px; left: -310px; top: -310px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(198,164,91,.13), transparent 62%); transform: translate(var(--x, 50vw), var(--y, 40vh)); transition: transform .5s var(--ease); }

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #f2eee4; font: 500 21px/1 var(--serif); letter-spacing: .02em; }
.brand b { color: var(--gold); font-weight: 600; }
.back { font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--muted); padding: 10px 0; transition: color .3s; }
.back:hover { color: var(--gold-light); }

.stage { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1fr minmax(0, 470px); align-items: center; gap: clamp(32px, 6vw, 96px);
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 56px; }

/* Emblema */
.emblem { position: relative; display: grid; justify-items: center; align-content: center; min-height: 460px; }
.ring { position: absolute; left: 50%; top: 46%; width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 50%; border: 1px solid var(--line); animation: spin 60s linear infinite; }
.ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.ring.r2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; border-style: dashed; animation-duration: 40s; animation-direction: reverse; }
.ring.r3 { width: 500px; height: 500px; margin: -250px 0 0 -250px; border-color: rgba(198,164,91,.08); animation-duration: 90s; }
.ring.r3::before { display: none; }
.halo { position: absolute; left: 50%; top: 46%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(234,217,172,.35) 82%, transparent 92%); filter: blur(18px); opacity: .75; animation: halo 7s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.lion { position: relative; width: 200px; filter: drop-shadow(0 20px 40px rgba(198,164,91,.25)); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease); animation: float 6s ease-in-out infinite alternate; }
.e-word { position: relative; margin: 26px 0 0; font: 500 40px/1 var(--serif); letter-spacing: .05em; color: #f2eee4; }
.e-rule { position: relative; display: block; width: 120px; height: 1px; margin: 14px 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.e-sub { position: relative; margin: 0; font: 600 13px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); padding-left: .5em; }

/* Cartão */
.panel { position: relative; }
.card { position: relative; padding: clamp(30px, 4vw, 44px); background: linear-gradient(160deg, rgba(26,24,20,.86), rgba(12,11,9,.9));
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(234,217,172,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: rise .9s var(--ease) both; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.card[hidden] { display: none; }
.k { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font: 500 clamp(28px, 3vw, 38px)/1.1 var(--serif); color: var(--gold-light); }
.k::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex: none; }
h1 { margin: 0; font: 400 clamp(19px, 1.7vw, 22px)/1.35 var(--sans); color: #f2eee4; }
.sub { margin: 8px 0 28px; font-size: 14.5px; color: var(--muted); }

.field { position: relative; margin-bottom: 18px; }
.field input { width: 100%; height: 58px; padding: 22px 48px 6px 16px; font: 16px var(--sans); color: #f6f2e8; background: rgba(255,255,255,.035);
  border: 1px solid rgba(234,217,172,.16); border-radius: 0; outline: none; transition: border-color .3s, background .3s; }
.field input:hover { border-color: rgba(234,217,172,.3); }
.field input:focus { border-color: rgba(198,164,91,.7); background: rgba(198,164,91,.06); }
.field input:-webkit-autofill { -webkit-text-fill-color: #f6f2e8; box-shadow: 0 0 0 40px #17150f inset; caret-color: #f6f2e8; }
.field label { position: absolute; left: 16px; top: 19px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--gold); letter-spacing: .06em; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); transform: scaleX(0); transition: transform .45s var(--ease); }
.field input:focus ~ .bar { transform: scaleX(1); }
.eye { position: absolute; right: 6px; top: 7px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.eye:hover, .eye[aria-pressed="true"] { color: var(--gold-light); }
.caps { margin: -6px 0 12px; font-size: 13px; color: var(--gold); }
.err { margin: 0 0 14px; padding: 10px 14px; font-size: 14px; color: var(--danger); border-left: 2px solid var(--danger); background: rgba(229,138,122,.08); }
.caps[hidden], .err[hidden], .empty[hidden] { display: none; }

.go { position: relative; width: 100%; height: 56px; margin-top: 6px; overflow: hidden; border: 0; cursor: pointer; font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #15120b;
  background: linear-gradient(135deg, #d6b56b, var(--gold) 45%, #a8873f); box-shadow: 0 16px 34px -18px rgba(198,164,91,.8); transition: transform .3s var(--ease), box-shadow .3s; }
.go:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(198,164,91,.9); }
.go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.go:hover::after { left: 120%; }
.go-s { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid rgba(21,18,11,.25); border-top-color: #15120b; opacity: 0; }
.go.busy .go-t { opacity: 0; }
.go.busy .go-s { opacity: 1; animation: spin .8s linear infinite; }
.go:disabled { cursor: progress; }
.help { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

.shake { animation: shake .45s var(--ease); }

/* Escolha de sistema */
.prods { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prod { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 18px; text-decoration: none; color: inherit;
  border: 1px solid rgba(234,217,172,.14); background: rgba(255,255,255,.025); transition: border-color .3s, background .3s, transform .35s var(--ease); animation: rise .6s var(--ease) both; }
.prod:hover, .prod:focus-visible { border-color: rgba(198,164,91,.6); background: rgba(198,164,91,.07); transform: translateX(4px); outline: none; }
.prod .ic { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 600 17px/1 var(--serif); }
.prod b { display: block; font: 500 21px/1.2 var(--serif); color: #f2eee4; }
.prod small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.prod .ar { color: var(--gold); font-size: 18px; transition: transform .3s var(--ease); }
.prod:hover .ar { transform: translateX(4px); }
.prod.off { opacity: .55; pointer-events: none; }
.empty { margin: 0; padding: 14px 16px; font-size: 14px; border-left: 2px solid var(--gold); background: rgba(198,164,91,.07); }
.out { margin-top: 22px; padding: 10px 0; background: none; border: 0; color: var(--muted); font: 500 13px var(--sans); letter-spacing: .08em; cursor: pointer; }
.out:hover { color: var(--gold-light); }

.foot { position: relative; z-index: 1; padding: 0 16px 24px; text-align: center; font-size: 12px; letter-spacing: .1em; color: rgba(167,161,148,.6); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { to { --a: 360deg; } }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 8px; padding-top: 0; }
  .emblem { min-height: 0; padding: 8px 0 18px; }
  .ring, .ring.r3 { display: none; }
  .ring.r2 { width: 190px; height: 190px; margin: -95px 0 0 -95px; top: 38%; }
  .halo { width: 180px; height: 180px; margin: -90px 0 0 -90px; top: 38%; }
  .lion { width: 92px; }
  .e-word { margin-top: 14px; font-size: 26px; }
  .e-rule { margin: 8px 0; width: 80px; }
  .e-sub { font-size: 11px; }
  .back { display: none; }
}
@media (max-width: 420px) {
  .card { padding: 26px 20px; }
  .brand { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
