/*
 * Login-page CONTENT block — the ONE stylesheet for three places, so the WYSIWYG editor shows
 * exactly what visitors will see:
 *   1. login.html            → <div class="cms-body">…</div>
 *   2. the editor (TinyMCE)  → loaded as content_css; the editable body is `body.mce-content-body`
 *   3. the app's preview     → sap.m.FormattedText with class="cms-body" (display mode)
 * Colours are literal (the editor iframe has no access to login.html's CSS variables).
 * Security rules at the end are belt-and-braces over the server-side sanitiser.
 */
@font-face {
  font-family: "Lato";
  src: url("/theme/fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/theme/fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

.cms-body,
body.mce-content-body {
  font-family: "Lato", "72", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1d2d3e;
  overflow-wrap: anywhere;
}
body.mce-content-body {
  margin: 12px 16px;
  background: #fff;
}
.cms-body > :first-child,
body.mce-content-body > :first-child {
  margin-top: 0;
}
.cms-body h1,
.cms-body h2,
.cms-body h3,
.cms-body h4,
body.mce-content-body h1,
body.mce-content-body h2,
body.mce-content-body h3,
body.mce-content-body h4 {
  color: #002d72;
  margin: 18px 0 6px;
  line-height: 1.25;
  font-weight: 700;
}
.cms-body h1,
body.mce-content-body h1 {
  font-size: 24px;
}
.cms-body h2,
body.mce-content-body h2 {
  font-size: 20px;
}
.cms-body h3,
body.mce-content-body h3 {
  font-size: 17px;
}
.cms-body h4,
body.mce-content-body h4 {
  font-size: 15px;
}
.cms-body p,
.cms-body ul,
.cms-body ol,
.cms-body blockquote,
body.mce-content-body p,
body.mce-content-body ul,
body.mce-content-body ol,
body.mce-content-body blockquote {
  margin: 0 0 12px;
}
.cms-body a,
body.mce-content-body a {
  color: #002d72;
}
.cms-body blockquote,
body.mce-content-body blockquote {
  border-left: 4px solid #dfe4ea;
  padding-left: 12px;
  color: #5a6b7b;
}
.cms-body hr,
body.mce-content-body hr {
  border: 0;
  border-top: 1px solid #dfe4ea;
  margin: 16px 0;
}
.cms-body table,
body.mce-content-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 12px;
}
.cms-body th,
.cms-body td,
body.mce-content-body th,
body.mce-content-body td {
  border: 1px solid #dfe4ea;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.cms-body th,
body.mce-content-body th {
  background: #f4f6f9;
  font-weight: 700;
}

/* Belt and braces: content can only style ITSELF — no positioning, no overflow, nothing embedded. */
.cms-body * {
  position: static !important;
  max-width: 100%;
}
.cms-body img,
body.mce-content-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
}
.cms-body iframe,
.cms-body object,
.cms-body embed,
.cms-body svg,
.cms-body form,
.cms-body input,
.cms-body button,
.cms-body select,
.cms-body textarea,
.cms-body video,
.cms-body audio {
  display: none !important;
}
