/* ---------------------------------------------------------------------------
 * UTP (Universidad Tecnológica del Perú) branding for the eSignet login UI.
 *
 * Same palette, type and logo as Inji Verify and Inji Web
 * (../../inji_verify/inji-verify-ui/utp.css, ../../inji-web/inji-web-ui/utp.css),
 * mapped onto oidc-ui's theme variables (theme/variables.css in the image).
 *
 * Loaded after the app's stylesheets (the Dockerfile injects a <link> at the
 * end of <head>), so plain declarations win over them. The exceptions are
 * --primary-color and the logo URLs: the app writes those as inline styles on
 * <html> at start-up (primary from DEFAULT_THEME, logos from its own image
 * paths), and only an !important declaration outranks an inline one.
 *
 * Palette from the UTP logo: crimson #b50d30 / #8c0a25 and near-black #1f1b1c.
 * ------------------------------------------------------------------------- */

/* oidc-ui's DEFAULT_FONT_URL never reaches the page (env.env does not list
   it), so the faces are loaded here. Must stay the first rule in the file. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap");

:root {
  /* Also passed as DEFAULT_THEME (cloudrun-service.yaml.tmpl); this keeps the
     colour right even if that variable is changed. */
  --primary-color: #b50d30 !important;
  --login-background: #faf9f9;
  --login-card-box-color: #e8e3e4;

  --language-icon-color: #ffffff;
  --language-icon-bg-color: #b50d30;
  --language-check-icon-color: #b50d30;

  --primary-button-bg-color: #b50d30;
  --primary-button-border-color: #b50d30;
  --primary-button-hover-bg-color: #8c0a25;
  --primary-button-hover-border-color: #8c0a25;
  --secondary-button-color: #b50d30;
  --secondary-button-hover-color: #8c0a25;
  --primary-button-border-radius: 0.75rem;

  --loading-indicator-ring-color: #b50d30;
  --info-icon-color: #b50d30;
  --checkbox-color: #b50d30;
  --back-button-color: #1f1b1c;
  --login-header-text-color: #1f1b1c;
  --login-subheader-text-color: #6b6466;
  --login-text-color: #3d3839;
  --footer-text-color: #6b6466;

  /* Logos: header wordmark, the mark next to the client logo on the login
     card, and the footer badge. */
  --brand-logo-url: url('/images/utp-logo.svg') !important;
  --brand-only-logo-url: url('/images/utp-mark.svg') !important;
  --footer-brand-logo-url: url('/images/utp-mark.svg') !important;
}

/* The same three images by class as well: the bundle also sets the logo
   variables at runtime on its own, so the variables alone are not enough. */
img.brand-logo {
  content: url('/images/utp-logo.svg') !important;
  height: 40px;
  width: auto;
}
img.brand-only-logo {
  content: url('/images/utp-mark.svg') !important;
}
img.footer-brand-logo {
  content: url('/images/utp-mark.svg') !important;
  height: 25px;
  width: auto;
}

/* eSignet's blue dot patterns in the page corners. */
.top_left_bg_logo,
.top_right_bg_logo,
.bottom_left_bg_logo,
.bottom_right_bg_logo {
  display: none !important;
}

/* Type: Inter for text, Plus Jakarta Sans for headings, as in Inji Verify. */
body,
input,
button,
select,
textarea {
  font-family: "Inter", system-ui, sans-serif !important;
}

h1, h2, h3,
.font-semibold,
.font-bold {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif !important;
  letter-spacing: -0.01em;
}

/* Focus ring in brand crimson rather than the browser default. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #b50d30;
  outline-offset: 2px;
}
