/* Identidad institucional: solo cuando NO existe personalización de tenant. */
html.druida-institutional {
  --brand-primary: #071923;
  --brand-secondary: #e9fcfb;
  --brand-accent: #07c5c9;
  --brand-color-4: #028993;
  --brand-color-5: #24d877;
  --brand-color-6: #07414c;
  --sidebar-bg-start: #071923;
  --sidebar-bg-end: #092b34;
  --sidebar-text: #e5fbf8;
  --sidebar-active: rgba(6, 210, 194, .17);
}
html.druida-institutional .sidebar { background: linear-gradient(160deg, #071923, #06303a 72%, #06454b); }
html.druida-institutional .brand { border-bottom: 1px solid rgba(25, 214, 203, .13); }
html.druida-institutional .brand-copy strong { color: #e7fffa; letter-spacing: .10em; }
html.druida-institutional .brand-copy span { color: #92c9c9; }
html.druida-institutional .brand-logo.druida-symbol { object-fit: contain; width: 46px; height: 46px; flex-shrink: 0; }
html.druida-institutional .login-visual {
  background: radial-gradient(ellipse at 18% 26%, rgba(18, 209, 182, .25), transparent 47%), linear-gradient(140deg, #051b24 0%, #083844 55%, #071923 100%);
}
html.druida-institutional .login-form-side { background: #f3f9f8; }
html.druida-institutional .login-card { border: 1px solid #d2e9e7; box-shadow: 0 16px 54px rgba(3, 44, 47, .12); }
html.druida-institutional .login-card-fallback { display: flex; align-items: center; justify-content: center; gap: 15px; }
html.druida-institutional .login-card-fallback strong { color: #07343d; font-weight: 800; letter-spacing: .12em; font-size: 1.7rem; }
html.druida-institutional .druida-login-symbol { width: 64px; height: 64px; object-fit: contain; }
html.druida-institutional .primary-button { background: linear-gradient(115deg, #078d90, #0fc7a6); color: #fff; }

/* DRUIDA: arte original del cliente como capa discreta; el copy sigue legible. */
html.druida-institutional .login-visual { position: relative; isolation: isolate; overflow: hidden; }
html.druida-institutional .druida-login-hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(180deg, rgba(4, 25, 32, .06) 0%, rgba(4, 25, 32, .18) 48%, rgba(4, 25, 32, .83) 100%), url("../branding/druida-login-hero.19b851540df5.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: .95;
}
html.druida-institutional .login-message { position: relative; z-index: 1; }
html.druida-institutional .druida-login-wordmark {
  display: block;
  width: min(100%, 275px);
  height: auto;
  max-height: 85px;
  object-fit: contain;
  margin-inline: auto;
}
@media (max-width: 780px) {
  html.druida-institutional .druida-login-hero-art { background-position: 60% 24%; opacity: .58; }
}

/* Ajuste profesional de login institucional; solo afecta DRUIDA, no tenants. */
html.druida-institutional .login-visual {
  background-color: #061d26;
}
html.druida-institutional .druida-login-hero-art {
  background-image:
    linear-gradient(180deg, rgba(3,18,24,.04) 0%, rgba(3,18,24,.06) 45%, rgba(3,18,24,.93) 100%),
    url("../branding/druida-login-hero-hq.5489165290c8.webp");
  background-size: cover;
  background-position: center 28%;
  opacity: 1;
}
html.druida-institutional .login-message { max-width: min(830px, 95%); }
html.druida-institutional .login-message .eyebrow {
  display: block;
  font-size: clamp(14px, 1.05vw, 17px);
  letter-spacing: .20em;
  font-weight: 800;
  line-height: 1.5;
  color: #ffbc55;
  margin-bottom: 17px;
}
html.druida-institutional .login-message h1 {
  font-size: clamp(44px, 5.1vw, 79px);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 800;
  max-width: 810px;
  text-wrap: balance;
}
html.druida-institutional .login-message p {
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.42;
  max-width: 770px;
  color: rgba(237, 252, 251, .94);
}
html.druida-institutional .druida-login-wordmark {
  width: min(100%, 275px);
  max-height: 92px;
  height: auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  background: transparent;
}
@media (max-width: 900px) {
  html.druida-institutional .druida-login-hero-art { background-position: 56% 18%; }
  html.druida-institutional .login-message h1 { font-size: clamp(40px, 6vw, 65px); }
}

/* El ancho pertenece al panel, no se fuerza una tipografía pequeña. */
@media (min-width: 1350px) {
  html.druida-institutional .login-layout {
    grid-template-columns: minmax(0, 7fr) minmax(385px, 3fr);
  }
  html.druida-institutional .login-visual {
    padding-inline: clamp(32px, 3vw, 54px);
  }
  html.druida-institutional .login-message {
    width: 100%;
    max-width: 100%;
  }
  html.druida-institutional .login-message h1 {
    max-width: 100%;
    font-size: clamp(54px, 4.25vw, 79px);
    white-space: normal;
    text-wrap: balance;
  }
  html.druida-institutional .login-message p {
    max-width: 100%;
    font-size: clamp(18px, 1.17vw, 22px);
    white-space: normal;
  }
}
