/* Login page — aligned with paperfly.io brand surface */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --pf-navy: #071527;
  --pf-navy-2: #0b1c33;
  --pf-ink: #f4f7fb;
  --pf-muted: #9db0c7;
  --pf-blue: #007bc5;
  --pf-blue-2: #2f9adf;
  --pf-line: rgba(255, 255, 255, 0.12);
  --pf-bad: #ff8b8b;
  --pf-font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--pf-font);
  color: var(--pf-ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 123, 197, 0.28), transparent 55%),
    radial-gradient(900px 500px at 85% 110%, rgba(47, 154, 223, 0.16), transparent 50%),
    linear-gradient(180deg, var(--pf-navy-2), var(--pf-navy));
  -webkit-font-smoothing: antialiased;
}

.pf-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  opacity: 0.7;
}

.pf-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 40px;
}

.pf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  animation: pf-rise 0.7s ease both;
}

.pf-top a.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.pf-top a.logo img {
  height: 28px;
  width: auto;
  display: block;
}

.pf-top .ext {
  color: var(--pf-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.pf-top .ext:hover { color: var(--pf-ink); }

.pf-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 0 24px;
}

.pf-brand {
  display: inline-flex;
  margin-bottom: 28px;
  text-decoration: none;
  animation: pf-rise 0.8s ease both;
}
.pf-brand img {
  width: min(220px, 72vw);
  height: auto;
  display: block;
}

.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: rgba(7, 21, 39, 0.55);
  color: var(--pf-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: pf-rise 0.85s ease 0.05s both;
}

.pf-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dde8a;
  box-shadow: 0 0 10px rgba(61, 222, 138, 0.8);
}

.pf-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  animation: pf-rise 0.9s ease 0.08s both;
}

.pf-hero .lead {
  margin: 0 0 32px;
  color: var(--pf-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 34em;
  animation: pf-rise 0.95s ease 0.12s both;
}

.pf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: pf-rise 1s ease 0.16s both;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pf-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pf-blue), var(--pf-blue-2));
  box-shadow: 0 10px 30px rgba(0, 123, 197, 0.35);
}
.pf-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 123, 197, 0.45);
  text-decoration: none;
}

.pf-btn.ghost {
  color: var(--pf-ink);
  background: transparent;
  border-color: var(--pf-line);
}
.pf-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.pf-err {
  margin-top: 20px;
  color: var(--pf-bad);
  font-size: 14px;
  font-weight: 600;
  animation: pf-rise 0.5s ease both;
}

.pf-dev {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--pf-line);
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.pf-dev label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--pf-muted);
  font-weight: 600;
}
.pf-dev input {
  border: 1px solid var(--pf-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pf-ink);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.pf-foot {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--pf-muted);
  font-size: 12px;
  animation: pf-rise 1.05s ease 0.2s both;
}
.pf-foot a { color: var(--pf-muted); text-decoration: none; }
.pf-foot a:hover { color: var(--pf-ink); }

@keyframes pf-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .pf-shell { padding: 20px 18px 28px; }
  .pf-hero { padding-top: 36px; }
  .pf-actions { width: 100%; flex-direction: column; }
  .pf-btn { width: 100%; }
}
