/* Branding follows CountryPage, independently of the UI language. */
:root[data-country-theme] {
  --portal-primary: #fec710;
  --portal-primary-rgb: 254, 199, 16;
  --portal-primary-dark: #a57d00;
  --portal-primary-soft: #fff9df;
  --portal-secondary: #a8aaae;
  --portal-secondary-rgb: 168, 170, 174;
  --portal-secondary-soft: #f1f1f2;
  --portal-primary-contrast: #211a00;
}
:root[data-country-theme="PT"] {
  --portal-primary: #b64b83;
  --portal-primary-rgb: 182, 75, 131;
  --portal-primary-dark: #923c69;
  --portal-primary-soft: #f8edf2;
  --portal-secondary: #5265a3;
  --portal-secondary-rgb: 82, 101, 163;
  --portal-secondary-soft: #eef1f8;
  --portal-primary-contrast: #fff;
}
:root[data-country-theme] {
  --bs-primary: var(--portal-primary);
  --bs-primary-rgb: var(--portal-primary-rgb);
  --bs-secondary: var(--portal-secondary);
  --bs-secondary-rgb: var(--portal-secondary-rgb);
  --bs-link-color: var(--portal-primary-dark);
  --bs-link-hover-color: var(--portal-primary-dark);
}
[data-country-theme] .auth-access-submit,
[data-country-theme] .auth-access-submit:hover,
[data-country-theme] .auth-access-submit:focus,
[data-country-theme] .recovery-steps .active span {
  color: var(--portal-primary-contrast);
}
[data-country-theme] .auth-access-submit:hover,
[data-country-theme] .auth-access-submit:focus {
  background: linear-gradient(135deg, var(--portal-primary-dark), var(--portal-secondary));
}

[data-country-theme="ES"] .auth-access-shell {
  --auth-ink: #1f2433;
  --auth-primary-dark: #fec710;
}

/* Original non-PT palette, verified against add-leads-crm. */
[data-country-theme="ES"] .auth-access-shell {
  background:
    radial-gradient(circle at 18% 20%, rgba(254, 199, 16, .24), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(45, 55, 72, .16), transparent 22rem),
    linear-gradient(135deg, #fff9df 0%, #f7f8fc 46%, #eef2f8 100%);
}
[data-country-theme="ES"] .auth-access-hero {
  background:
    linear-gradient(160deg, rgba(31, 36, 51, .94), rgba(31, 36, 51, .82)),
    radial-gradient(circle at 20% 18%, rgba(254, 199, 16, .52), transparent 19rem);
}
[data-country-theme="ES"] .auth-access-metric strong { color: var(--auth-primary); }
[data-country-theme="ES"] .auth-access-form .form-control:focus { border-color: var(--auth-primary); }
[data-country-theme="ES"] .auth-access-submit,
[data-country-theme="ES"] .auth-access-submit:hover,
[data-country-theme="ES"] .auth-access-submit:focus {
  background: #fec710;
  color: #211a00;
}
[data-country-theme="ES"] .auth-access-logout-icon { color: #211a00; }
[data-country-theme="ES"] .content-wrapper { --page-ink: #1f2433; }
[data-country-theme="ES"] .page-hero__kicker { color: #6f5200; }
