/* PORTA DESIGN — shared brand layer: fonts, tokens, the signature animated
   background, and the form-card atoms. One source of truth for every branded
   page (index splash + 404 on the content host, the OAuth consent page on the
   admin host). Served on both hosts via the shared docroot (ADR-0002).
   TWK Lausanne weights match portadesign.cz. */

@font-face{font-family:"TWK Lausanne";font-style:normal;font-weight:200;font-display:swap;src:url("/fonts/TWKLausanne-200.ttf") format("truetype")}
@font-face{font-family:"TWK Lausanne";font-style:normal;font-weight:300;font-display:swap;src:url("/fonts/TWKLausanne-300.ttf") format("truetype")}
@font-face{font-family:"TWK Lausanne";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/TWKLausanne-400.ttf") format("truetype")}
@font-face{font-family:"TWK Lausanne";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/TWKLausanne-500.ttf") format("truetype")}
@font-face{font-family:"TWK Lausanne";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/TWKLausanne-600.ttf") format("truetype")}

:root{
  --bg:#1c1c22;--bg-2:#141418;--panel:#23232b;
  --red:#ff4942;--red-2:#ff5d57;
  --text:#f3f1ee;--muted:#8c8a93;--line:#2d2d35;
  /* brand-neutral aliases consumed by the dashboard token layer */
  --accent:var(--red);--accent-2:var(--red-2);
  --accent-soft:rgba(255,73,66,.12);--accent-line:rgba(255,73,66,.4);
  --panel-shadow:0 24px 60px -28px rgba(0,0,0,.65);
  --row-hover:rgba(255,255,255,.022);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;color:var(--text);
  background:radial-gradient(120% 80% at 50% 32%,#25252c 0%,var(--bg) 46%,var(--bg-2) 100%),var(--bg);
  font-family:"TWK Lausanne","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;
  -webkit-font-smoothing:antialiased;letter-spacing:-.01em;
}

/* opt-in viewport centering */
.center{min-height:100dvh;display:grid;place-items:center;padding:1.5rem}

/* the brand signature: red constellation canvas + soft glow, both behind content */
#fx{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.glow{position:fixed;left:50%;top:38%;width:720px;height:720px;transform:translate(-50%,-50%);border-radius:50%;z-index:0;pointer-events:none;
  background:radial-gradient(circle,rgba(255,73,66,.16) 0%,rgba(255,73,66,0) 66%)}

.logo{display:block;height:auto;color:var(--red)}
.logo path{fill:currentColor}

/* entrance (respects reduced motion) */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(10px);animation:rise .9s cubic-bezier(.2,.7,.2,1) forwards}
  .d1{animation-delay:.05s}.d2{animation-delay:.22s}.d3{animation-delay:.4s}.d4{animation-delay:.52s}
}
@keyframes rise{to{opacity:1;transform:none}}

/* form card — consent and any future admin form pages */
.card{position:relative;z-index:1;width:100%;max-width:25rem;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:2.25rem}
.card .logo{width:108px;margin:0 0 1.75rem}
.card h1{font-size:1.5rem;font-weight:500;letter-spacing:-.02em;margin:0 0 .55rem}
.card p{color:var(--muted);line-height:1.55;margin:0 0 1.25rem}
.card label{display:block;font-size:.8rem;font-weight:500;color:var(--text);margin:0 0 .45rem}
.card input{width:100%;padding:.8rem .9rem;background:#1b1b21;border:1px solid var(--line);border-radius:11px;color:var(--text);font:inherit;font-size:1rem}
.card input::placeholder{color:#5f5f6b}
.card input:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(255,73,66,.15)}
.card button{width:100%;margin-top:1.25rem;padding:.85rem 1rem;background:var(--red);color:#fff;border:0;border-radius:11px;font:inherit;font-weight:600;font-size:1rem;cursor:pointer;transition:background .15s}
.card button:hover{background:var(--red-2)}
.card .note{font-size:.78rem;color:var(--muted);margin:1.25rem 0 0}
.card .err{color:#ffb3b0;background:rgba(255,73,66,.12);border:1px solid rgba(255,73,66,.32);border-radius:10px;padding:.65rem .85rem;font-size:.9rem;margin:0 0 1.1rem}
