:root {
  --custom-primary: #0b4f3c;
  --custom-primary-hover: #126b52;
  --custom-accent: #f5c542;
  --custom-background: #071b16;
}

/* Fond général de la page d’authentification */
.auth-layout,
.auth-page,
.login-page {
  background:
    radial-gradient(
      circle at top right,
      rgba(18, 107, 82, 0.28),
      transparent 40%
    ),
    linear-gradient(
      135deg,
      #071b16 0%,
      #0b3026 55%,
      #0b4f3c 100%
    ) !important;
}

/* Bouton principal */
button[type="submit"],
button[class*="primary"] {
  background-color: var(--custom-primary) !important;
  border-color: var(--custom-primary) !important;
}

button[type="submit"]:hover,
button[class*="primary"]:hover {
  background-color: var(--custom-primary-hover) !important;
}

/* Champs */
input:focus {
  border-color: var(--custom-primary) !important;
  box-shadow: 0 0 0 1px var(--custom-primary) !important;
}

/* Liens */
a {
  text-decoration-color: var(--custom-accent);
}

/* Logo de la page de connexion */
.auth-layout img[src*="penpot-logo"],
.auth-page img[src*="penpot-logo"] {
  max-width: 260px !important;
  max-height: 90px !important;
  object-fit: contain;
}

.auth-layout,
.auth-page,
.login-page {
  background:
    linear-gradient(
      rgba(4, 25, 19, 0.82),
      rgba(4, 25, 19, 0.92)
    ),
    url("/images/login-background.webp")
    center center / cover no-repeat fixed !important;
}

#custom-branding-header {
  margin-bottom: 28px;
  text-align: center;
}

.custom-branding-title {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.custom-branding-subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

#custom-branding-footer {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
/* Logo personnalisé */
.custom-brand-logo {
  display: block !important;
  width: auto !important;
  max-width: 210px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

/* Bloc institutionnel du tableau de bord */
#custom-dashboard-brand {
  box-sizing: border-box;
  width: 100%;
  padding: 18px 16px 22px;
  text-align: center;
}

.custom-dashboard-logo {
  display: block;
  width: auto;
  max-width: 170px;
  max-height: 56px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.custom-dashboard-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.custom-dashboard-subtitle {
  max-width: 190px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

/* Éléments masqués par le script */
[data-custom-hidden="true"] {
  display: none !important;
}

/* Masquage complémentaire des liens Penpot externes */
a[href*="help.penpot"],
a[href*="community.penpot"],
a[href*="github.com/penpot"],
a[href*="penpot.app"] {
  display: none !important;
}
/* Icônes et avatars du sélecteur d’équipe */
[class*="team"] img,
[class*="profile"] img,
[class*="avatar"] img,
[class*="dropdown"] img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: cover !important;
  border-radius: 4px;
  margin: 0 !important;
}
aside button img,
aside [role="button"] img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  flex: 0 0 32px;
}
