/* Branding charte (vert Plantabilité) du portail caddy-security - thème basic.
   Injecté via `custom css path` ; sert par-dessus login.css → on surcharge. */
:root { --brand:#1f7a4d; --brand-700:#176039; --brand-50:#e8f5ee; }

/* Fond vert très pâle, comme la landing (remplace bg-blue-100). */
html, body, .app-page {
  background:
    radial-gradient(1100px 540px at 80% -10%, #e9f6ef 0%, rgba(233,246,239,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f5faf7 100%) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

/* Panneau centré verticalement dans la page. */
.app-page {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Carte centrale : coins arrondis, liseré vert, ombre douce. */
.bg-white.border {
  border-radius: 18px !important;
  border-color: #e2e8f0 !important;
  border-top: 3px solid var(--brand) !important;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .25) !important;
}

/* Titres / accents → vert. */
.text-primary-700, .text-primary-600 { color: var(--brand) !important; }
.logo-txt { color: #1e293b !important; font-weight: 700 !important; }

/* Bouton principal (Continuer / liens). */
.app-btn-pri {
  background: var(--brand) !important; border-color: var(--brand) !important;
  color: #fff !important; border-radius: 12px !important; font-weight: 600 !important;
  transition: background .15s ease, transform .15s ease;
}
.app-btn-pri:hover { background: var(--brand-700) !important; transform: translateY(-1px); }

/* Boutons secondaires (maison / régénérer) : survol vert au lieu de bleu. */
.app-btn-sec:hover { background: var(--brand-700) !important; }

/* Champ de saisie : focus vert. */
.app-inp-box { border-radius: 12px !important; }
.app-inp-box:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(31, 122, 77, .15) !important;
}
.app-inp-prf-img, .las.la-user, .las.la-unlock { color: var(--brand) !important; }

/* Entrées du portail (au cas où il s'affiche) : survol vert. */
a:hover .text-lg, a:hover .text-primary-600 { color: var(--brand-700) !important; }

/* Logo = illustration Plantabilité (arbre sur grille), centrée + tout centré. */
.app-content { text-align: center !important; }
.logo-box {
  display: flex !important; flex-direction: column !important;
  align-items: center !important; gap: 4px !important; margin-bottom: 8px !important;
}
.logo-img {
  width: 168px !important; height: auto !important;
  display: block !important; margin: 0 auto !important;
}
.logo-txt { text-align: center !important; margin: 0 auto !important; }
.app-inp-box { text-align: left !important; }

/* Petit QR/badge décoratif → masqué (cf. aussi portal.js). */
.la-qrcode { display: none !important; }
