/* Centry admin skin for django-unfold — mirrors centry-frontend's sign-in page:
   cream canvas, forest hairline across the top, sage contour texture and a
   frosted paper card. Loaded via UNFOLD["STYLES"] (see baihu/settings.py). */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

:root {
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Forest hairline across the top — the only chrome on the sign-in page */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #1E3528;
  z-index: 60;
  pointer-events: none;
}

/* Light mode canvas: paper for the admin, cream for the sign-in page */
html:not(.dark) #main { background: #FDFCF9 !important; }
html:not(.dark) body.login,
html:not(.dark) body.login #page {
  background-color: #F2F0E6 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%238FA377' stroke-opacity='0.14'%3E%3Cpath d='M-50,120 C250,60 450,200 800,140 S1350,60 1650,160' stroke-width='1'/%3E%3Cpath d='M-50,160 C250,100 450,240 800,180 S1350,100 1650,200' stroke-width='0.8'/%3E%3Cpath d='M-50,200 C250,140 450,280 800,220 S1350,140 1650,240' stroke-width='0.6'/%3E%3Cpath d='M-50,700 C250,640 450,780 800,720 S1350,640 1650,740' stroke-width='1'/%3E%3Cpath d='M-50,740 C250,680 450,820 800,760 S1350,680 1650,780' stroke-width='0.8'/%3E%3Cpath d='M-50,780 C250,720 450,860 800,800 S1350,720 1650,820' stroke-width='0.6'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

/* Frosted paper card around the sign-in form */
html:not(.dark) body.login #page > div > div.w-full {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(30, 53, 40, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(30, 53, 40, 0.04);
  padding: 1.75rem 2rem 2rem;
}
