/* ============================================================
   Ascendry Postiz Login Reskin v2.0 — 2026-08-21 (Forge)
   Injected via nginx sub_filter into /auth/login <head>.
   Pure visual overlay; touches no auth/backend.
   Revert: restore backup at /root/.hermes/data/postiz_reskin_backup_*/
/* ============================================================ */

/* --- Custom fonts (Playfair Display for headings, Montserrat for body) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* === Full-bleed Forest gradient background === */
html, body {
  background: linear-gradient(160deg, #0E1710 0%, #1C2B1E 45%, #0E1710 100%) !important;
  min-height: 100vh !important;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important;
}

/* Make Postiz's dark container transparent so the gradient shows through */
div[class*="bg-[#0E0E0E]"] {
  background: transparent !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  padding: 24px !important;
}

/* Expand the 850px wrapper and center content vertically + horizontally */
div[class*="max-w-[850px]"] {
  max-width: 480px !important;
  margin: 0 auto !important;
  min-height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

/* Login column: full width within the centered wrapper */
div[class*="max-w-[440px]"] {
  max-width: 100% !important;
  width: 100% !important;
}

/* === Ascendry logo (replaces Postiz SVG wordmark via JS) === */
.ascendry-logo {
  text-align: center;
  margin-bottom: 16px;
}
.ascendry-logo img {
  width: 200px;
  height: auto;
  display: inline-block;
}

/* === Login card — elevated, rounded, Sage border, shadow === */
div[class*="rounded-[12px]"][class*="bg-[#1A1919]"] {
  background: rgba(14, 23, 16, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(74, 122, 78, 0.4) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 122, 78, 0.1) !important;
  border-radius: 16px !important;
  max-width: 460px !important;
  width: 100% !important;
  flex: none !important;
}

/* Inner card — transparent so the outer card's styling shows */
div[class*="rounded-[16px]"][class*="bg-[#1A1919]"] {
  background: transparent !important;
  border: none !important;
}

/* === "Sign In" heading — Playfair Display, centered === */
h1[class*="text-[40px]"] {
  font-family: 'Playfair Display', serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  text-align: center !important;
  letter-spacing: -0.02em !important;
  color: #FAFAF5 !important;
  margin-bottom: 8px !important;
}

/* === Hide GitHub OAuth button + "Continue With" label + "OR" divider ===
   No GITHUB_CLIENT_ID configured — the button is non-functional.
   Postiz shows it whenever IS_GENERAL is unset (self-hosted mode);
   there is no clean env flag to disable it without other side effects. */
div[class*="cursor-pointer bg-white h-[44px]"] {
  display: none !important;
}
div[class*="h-[20px] mb-[24px] mt-[24px]"] {
  display: none !important;
}

/* === Input fields — Forest bg, Sage border, Electric Blue focus === */
div[class*="bg-newBgColorInner"] {
  background: rgba(28, 43, 30, 0.5) !important;
  border-color: rgba(74, 122, 78, 0.4) !important;
  border-radius: 10px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
div[class*="bg-newBgColorInner"]:focus-within {
  border-color: #0EA5E9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}
input[class*="bg-transparent"] {
  color: #FAFAF5 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
}
input[class*="bg-transparent"]::placeholder {
  color: rgba(242, 246, 242, 0.35) !important;
}

/* === Submit button — Electric Blue CTA === */
[class*="bg-forth"] {
  background: #0EA5E9 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
  font-family: 'Montserrat', sans-serif !important;
  transition: background 0.2s ease, box-shadow 0.2s ease !important;
}
[class*="bg-forth"]:hover {
  background: #0284C7 !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35) !important;
}

/* === Links — Sage Light, Electric Blue on hover === */
a[class*="underline"] {
  color: #5E9062 !important;
  font-family: 'Montserrat', sans-serif !important;
}
a[class*="underline"]:hover {
  color: #0EA5E9 !important;
}

/* === Form labels === */
label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #F2F6F2 !important;
}

/* === Hide marketing/testimonial panel (right side) === */
div[class*="text-[36px] flex-1 pt-[88px]"] {
  display: none !important;
}

/* === "Don't Have An Account? Sign Up" hidden (registration disabled) === */
p:has(a[href="/auth"]) {
  display: none !important;
}

/* === Error text === */
.text-red-400 {
  color: #0EA5E9 !important;
}
