/* Charifund client login — portaal.victoriasfundacion.nl (Invoice Ninja) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Nunito+Sans:wght@300;400;600;700&display=swap");

:root {
  --vf-cream: #f9f6f0;
  --vf-cream-deep: #eee3d2;
  --vf-burgundy: #6b1f23;
  --vf-burgundy-hover: #521619;
  --vf-gold: #ba8642;
  --vf-ink: #2c2d32;
  --vf-muted: #6d5d4f;
  --vf-border: rgba(44, 45, 50, 0.12);
  --vf-radius: 6px;
  --vf-font-serif: "Cormorant Garamond", Georgia, serif;
  --vf-font-sans: "Nunito Sans", system-ui, sans-serif;
}

html.vf-portaal,
html.vf-portaal body {
  font-family: var(--vf-font-sans) !important;
  font-weight: 300;
  color: var(--vf-ink);
  background: var(--vf-cream) !important;
}

html.vf-portaal body {
  margin: 0;
  min-height: 100vh;
}

.vf-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vf-cream);
}

.vf-login-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  max-height: 420px;
  background-image: url("/vf-branding/img/portal-login-bridge-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 18%, black 55%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 18%, black 55%);
}

.vf-topbar,
.vf-login-hero,
.vf-app-slot,
.vf-trust-strip,
.vf-login-logo-wrap {
  position: relative;
  z-index: 1;
}

.vf-topbar {
  background: var(--vf-burgundy);
  color: rgba(249, 246, 240, 0.95);
  font-size: 0.75rem;
  padding: 0.6rem 1.5rem;
}

.vf-topbar-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.vf-topbar-tagline {
  font-style: italic;
  font-family: var(--vf-font-serif);
  font-size: 0.85rem;
}

.vf-topbar-back {
  color: rgba(249, 246, 240, 0.95) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.vf-topbar-back:hover {
  color: var(--vf-gold) !important;
}

.vf-login-hero {
  padding: 2.25rem 1.5rem 1rem;
  text-align: center;
}

.vf-login-hero-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.vf-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vf-burgundy);
  font-weight: 600;
  margin: 0;
}

.vf-login-hero h1 {
  font-family: var(--vf-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: var(--vf-burgundy);
  margin: 0.5rem 0 0;
  line-height: 1.12;
}

.vf-heart-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem auto 0.85rem;
  max-width: 14rem;
}

.vf-heart-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(99, 29, 33, 0.22);
}

.vf-heart-divider__heart {
  color: var(--vf-gold);
  font-size: 0.75rem;
  line-height: 1;
}

.vf-login-hero-intro {
  color: var(--vf-muted);
  font-size: 0.95rem;
  margin: 0 auto;
  line-height: 1.65;
  max-width: 28rem;
}

.vf-login-logo-wrap {
  text-align: center;
  padding: 0 1.5rem 1.25rem;
  margin: 0 auto 0.25rem;
  max-width: 28rem;
  border-bottom: 1px solid var(--vf-border);
}

.vf-login-logo-wrap .vf-logo {
  height: 4.5rem;
  width: auto;
  max-width: 100%;
}

.vf-app-slot {
  padding: 1rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ── Flatten Invoice Ninja's 3-col login (image | form) ── */
html.vf-portaal.vf-login-path .vf-app-slot .grid {
  display: block !important;
  width: 100% !important;
  max-width: 28rem !important;
  margin: 0 auto !important;
}

html.vf-portaal.vf-login-path .vf-app-slot .bg-red-100,
html.vf-portaal.vf-login-path .vf-app-slot .hidden.lg\:block {
  display: none !important;
}

html.vf-portaal.vf-login-path .vf-app-slot .col-span-2,
html.vf-portaal.vf-login-path .vf-app-slot .col-span-2.h-screen {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

html.vf-portaal.vf-login-path .vf-app-slot .col-span-2 > div,
html.vf-portaal.vf-login-path .vf-app-slot .m-auto {
  width: 100% !important;
  max-width: 28rem !important;
  margin: 0 auto !important;
}

/* Drop default Invoice Ninja chrome (we show Victoria logo + hero) */
html.vf-portaal.vf-login-path #company_logo,
html.vf-portaal.vf-login-path #company_logo + *,
html.vf-portaal.vf-login-path .vf-app-slot h1.text-3xl,
html.vf-portaal.vf-login-path .vf-app-slot .text-center.text-3xl {
  display: none !important;
}

html.vf-portaal.vf-login-path .vf-app-slot form {
  background: #fff;
  border: 1px solid rgba(99, 29, 33, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px -28px rgba(44, 45, 50, 0.22);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-top: 0.5rem;
}

html.vf-portaal.vf-login-path .vf-app-slot label {
  color: var(--vf-burgundy) !important;
  font-weight: 600;
  font-size: 0.875rem;
}

html.vf-portaal.vf-login-path .vf-app-slot input[type="email"],
html.vf-portaal.vf-login-path .vf-app-slot input[type="password"],
html.vf-portaal.vf-login-path .vf-app-slot input[type="text"] {
  border-radius: var(--vf-radius) !important;
  border-color: rgba(99, 29, 33, 0.15) !important;
  font-family: var(--vf-font-sans);
}

html.vf-portaal.vf-login-path .vf-app-slot input:focus {
  border-color: var(--vf-gold) !important;
  box-shadow: 0 0 0 0.15rem rgba(186, 134, 66, 0.18) !important;
  outline: none;
}

html.vf-portaal.vf-login-path .vf-app-slot a {
  color: var(--vf-burgundy) !important;
  font-weight: 600;
}

html.vf-portaal.vf-login-path .vf-app-slot button[type="submit"],
html.vf-portaal.vf-login-path .vf-app-slot button {
  background: var(--vf-burgundy) !important;
  border-color: var(--vf-burgundy) !important;
  color: #f9f6f0 !important;
  border-radius: var(--vf-radius) !important;
  font-weight: 600 !important;
  width: 100%;
}

html.vf-portaal.vf-login-path .vf-app-slot button:hover {
  background: var(--vf-burgundy-hover) !important;
}

.vf-trust-strip {
  margin-top: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  background: rgba(238, 227, 210, 0.65);
  border-top: 1px solid var(--vf-border);
}

.vf-trust-strip-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .vf-trust-strip-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.vf-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--vf-muted);
  line-height: 1.45;
}

.vf-trust-icon {
  color: var(--vf-gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.vf-legal-note {
  max-width: 42rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--vf-muted);
  line-height: 1.55;
}

/* After shell exists, hide leftover Invoice Ninja/cookie chrome outside it */
html.vf-portaal.vf-login-path body.vf-shell-ready > *:not(.vf-shell) {
  display: none !important;
}
