/*
 * The EMS look of the CAS 5 pages, on top of the stock CAS 7 templates and their cas.css.
 *
 * The old pages ran Bootstrap 3 and Bootstrap 4 together on a 10px root font size; the pixel values
 * below are what that produced. The view being rendered is in <meta name="ems-view">
 * (templates/fragments/custom.html): several CAS views share the same markup but did not look alike.
 */

/* *************************************************************************************************
  Fonts: the Roboto files Google Fonts served to the old pages, and the Font Awesome 5 icons they used
************************************************************************************************* */

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-cyrillic-ext-400-38e21fb29204c924bb5fd5d2ed28a08b.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-cyrillic-400-caf24554fcddffbba0141e739c0f3a1a.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-greek-ext-400-9804f3e49c0208464afda34211d02bec.woff2) format("woff2");
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-greek-400-08a0f64dac088e39adcff8da5ac07eb2.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-math-400-fde3d54879694d59ba0749863e547df2.woff2) format("woff2");
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330,
    U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6,
    U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F,
    U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F,
    U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B,
    U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475,
    U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF,
    U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-symbols-400-6823bd07e7d4a2d10fe0c1f5ed98253d.woff2) format("woff2");
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192,
    U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A,
    U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF,
    U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E,
    U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C,
    U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF,
    U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408,
    U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A,
    U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF,
    U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D,
    U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694,
    U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3,
    U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB,
    U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F,
    U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-vietnamese-400-36002fe837db3359253d1cb94914e562.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-latin-ext-400-5aabe8157d61bb3355003286c1cbdbed.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  src: url(/themes/ems/fonts/roboto-v51-latin-400-4279528ce0e7dc28919e6f8ce5f0eaa5.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Only the user, lock, unlock and exclamation-circle icons */
@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  src: url(/themes/ems/fonts/fa-solid-900-ems-083e1a3a65c5c6b941db91716a64596b.woff2) format("woff2");
}

/* *************************************************************************************************
  Page
************************************************************************************************* */

:root {
  --mdc-typography-font-family: Roboto;
  --ems-orange: #f67f00;
}

/* The page scrolls as a whole, as before: the stock layout scrolls a box inside a fixed page instead,
   where the browser no longer renders text with subpixel antialiasing */
body {
  display: block;
  height: auto;
  overflow: visible;
  font-family: Roboto;
  font-size: 15px;
  line-height: 22.5px;
  color: #4d4d4d;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a, a:visited, a:active {
  color: #0035ad;
  text-decoration: none;
}

a:hover, a:focus {
  color: #0056b3;
  text-decoration: underline;
}

/* The header: white bar, logo on the left, orange stripes with slanted ends across the page */
#app-bar {
  position: absolute;
  height: 60px;
  z-index: 99;
  box-shadow: 0 6px 15px -8px rgba(0, 0, 0, .75);
  background:
    linear-gradient(var(--ems-orange) 0 0) 10px 7px / calc(100% - 11px) 5px no-repeat,
    linear-gradient(var(--ems-orange) 0 0) 16px 15px / calc(100% - 16px) 5px no-repeat,
    linear-gradient(var(--ems-orange) 0 0) 23px 23px / calc(100% - 24px) 5px no-repeat,
    linear-gradient(var(--ems-orange) 0 0) 29px 31px / 30px 5px no-repeat,
    linear-gradient(var(--ems-orange) 0 0) 35px 39px / 30px 5px no-repeat,
    linear-gradient(var(--ems-orange) 0 0) 41px 47px / 30px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--ems-orange) 50%) 6px 7px / 4px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--ems-orange) 50%) 12px 15px / 4px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--ems-orange) 50%) 19px 23px / 4px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--ems-orange) 50%) 25px 31px / 4px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--ems-orange) 50%) 31px 39px / 4px 5px no-repeat,
    linear-gradient(to top right, transparent 50%, var(--ems-orange) 50%) 37px 47px / 4px 5px no-repeat,
    #fff;
}

#app-bar .mdc-top-app-bar__row {
  display: block;
  height: 60px;
  min-height: 0;
  padding: 0;
  background: none;
}

#app-bar .mdc-top-app-bar__section--align-start, #app-bar .mdc-top-app-bar__section--align-end {
  display: none;
}

#cas-logo {
  position: absolute;
  top: 7px;
  left: 42px;
  width: auto;
  height: 46px;
  z-index: 20;
}

.mdc-top-app-bar--fixed-adjust {
  padding-top: 60px;
}

.mdc-drawer-app-content.bgimage {
  min-height: 100vh;
  overflow: visible;
  background: url(/themes/ems/images/ems-background-5b41b1b4d94c0ba4a75decbcaf52483b.jpg) center / cover no-repeat fixed;
  animation: none;
}

/* *************************************************************************************************
  The panel on the right that holds the login and password pages
************************************************************************************************* */

#main-content {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 60px);
  margin: 0 0 0 auto;
  padding: 0 14px 0 15px !important;
  background: rgba(250, 249, 252, .9);
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, .2), 0 9px 26px 0 rgba(0, 0, 0, .19);
}

@media (min-width: 576px) {
  #main-content {
    width: 50%;
  }
}

@media (min-width: 992px) {
  #main-content {
    width: 25%;
  }
}

/* The page content, centred vertically, but scrolling rather than cut off when it does not fit */
#main-content > * {
  display: block !important;
  width: auto !important;
  max-width: none;
  margin: auto 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#main-content .mdc-card, #main-content .card-body, #main-content .login-section,
#main-content .row, #main-content [class*="col-"] {
  display: block !important;
  flex: none;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#main-content h2, #main-content h3 {
  margin: 0 0 5px;
  font-family: Roboto;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  color: inherit;
  text-align: left;
}

#main-content h2 > i, #main-content h3 > i, .banner h2::before {
  display: none;
}

#main-content p {
  margin: 0;
}

/* Alerts */
#main-content .alert, #main-content .banner {
  display: block;
  margin: 0 !important;
  padding: 7.5px 12.5px !important;
  border: 1px solid #f5c6cb;
  border-radius: 2.5px;
  box-shadow: none;
  font-size: 15px;
  line-height: 22.5px;
  color: #721c24;
  background: #f8d7da;
}

/* Fields: the field label stands in for the placeholder and the icon in front of the field.
   flow-root: the old 15px above each field was padding, so it must not merge with the margin of the heading */
#main-content .cas-field, #main-content .mdc-input-group, #main-content .mdc-input-group-field,
#main-content div.caps-check {
  display: flow-root !important;
  margin: 0 !important;
}

/* will-change: no layer of their own for the Material ripples, which would turn the text greyscale */
#main-content .mdc-text-field, #main-content .mdc-floating-label, #main-content .mdc-button {
  will-change: auto;
}

#main-content .mdc-text-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 34px;
  margin-top: 15px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
}

#main-content .mdc-text-field::before {
  content: "\f023";
  display: flex;
  flex: 0 0 37.25px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 34px;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font: 900 14px/1 "Font Awesome 5 Free";
  color: #555;
  background: #eee;
}

#main-content .mdc-text-field[for="username"]::before {
  content: "\f007";
}

#main-content .mdc-text-field .mdc-text-field__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 3.75px 7.5px;
  border: 1px solid #ced4da !important;
  border-radius: 0 2.5px 2.5px 0 !important;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  font-family: Roboto;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: normal;
  color: #495057;
  background: #fff;
}

#main-content .mdc-text-field .mdc-text-field__input:focus {
  position: relative;
  z-index: 3;
  outline: 0;
  border-color: #80bdff !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, .25);
}

#main-content .mdc-notched-outline {
  z-index: 4;
}

#main-content .mdc-notched-outline > * {
  border: 0 !important;
}

#main-content .mdc-notched-outline__notch {
  position: static !important;
  width: auto !important;
  padding: 0;
}

#main-content .mdc-text-field .mdc-floating-label {
  position: absolute !important;
  top: 6.5px !important;
  left: 45.75px !important;
  right: auto;
  max-width: calc(100% - 54px);
  transform: none !important;
  transition: none;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: normal;
  color: #6c757d !important;
  cursor: text;
}

#main-content .mdc-floating-label--required::after {
  content: none;
}

#main-content .mdc-text-field:has(.mdc-text-field__input:valid) .mdc-floating-label {
  visibility: hidden;
}

#main-content .mdc-text-field-helper-line, #main-content .caps-warn, #main-content .reveal-password,
#main-content .generate-password {
  display: none !important;
}

/* Buttons */
#main-content .mdc-button {
  display: block;
  width: 100%;
  min-width: 0;
  height: 30.5px;
  margin: 15px 0 0;
  padding: 3.75px 7.5px;
  border: 1px solid #d58512;
  border-radius: 2.5px;
  filter: none;
  transform: none;
  box-shadow: none;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  color: #fff;
  background: var(--ems-orange) !important;
  cursor: pointer;
}

#main-content .mdc-button:hover, #main-content .mdc-button:focus {
  transform: none;
  box-shadow: none;
  color: #fff;
}

#main-content .mdc-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(38, 143, 255, .5);
}

#main-content .mdc-button:disabled {
  opacity: .65;
  cursor: default;
}

#main-content .mdc-button .mdi, #main-content .mdc-button .mdc-button__ripple {
  display: none;
}

/* The secondary button of the old pages had no style of its own */
#main-content .mdc-button--outline {
  margin-top: 5px;
  border-color: transparent;
  color: #4d4d4d;
  background: #f0f0f0 !important;
}

#main-content .mdc-button--outline:hover, #main-content .mdc-button--outline:focus {
  color: #4d4d4d;
}

/* *************************************************************************************************
  Login
************************************************************************************************* */

#login-form-controls > h2 {
  margin-bottom: 20px;
  text-align: center;
}

#loginErrorsPanel > h2 {
  display: none;
}

#loginForm hr {
  display: none;
}

#pmlinks {
  margin: 25px 0 0 !important;
}

#pmlinks br {
  display: none;
}

#pmlinks .mdi-lock-open {
  display: inline-block;
  font: 900 15px/1 "Font Awesome 5 Free";
}

#pmlinks .mdi-lock-open::before {
  content: "\f09c";
  font: inherit;
}

/* *************************************************************************************************
  Password reset
************************************************************************************************* */

#reset section {
  padding: 0 !important;
}

#reset .d-flex {
  display: flow-root !important;
  margin-top: 15px;
}

#reset .mdc-card__actions_actions {
  display: block !important;
  padding: 0 !important;
  font-size: 0;
  line-height: 0;
}

/* The reset instructions sent, the reset link failed, the password changed: an alert in the panel */
:root:has(meta[name="ems-view"][content$="casResetPasswordSentInstructionsView"]) #main-content > *,
:root:has(meta[name="ems-view"][content$="casResetPasswordErrorView"]) #main-content > *,
:root:has(meta[name="ems-view"][content$="casPasswordUpdateSuccessView"]) #main-content > * {
  margin: auto -1px auto 0 !important;
  padding: 7.5px 12.5px !important;
  border: 1px solid #f5c6cb;
  border-radius: 2.5px;
  color: #721c24;
  background: #f8d7da;
}

:root:has(meta[name="ems-view"][content$="casResetPasswordSentInstructionsView"]) #main-content > *,
:root:has(meta[name="ems-view"][content$="casPasswordUpdateSuccessView"]) #main-content > * {
  border-color: #c3e6cb;
  color: #155724;
  background: #d4edda;
}

:root:has(meta[name="ems-view"][content$="casPasswordUpdateSuccessView"]) #main-content form {
  display: none;
}

/* The new password, after the reset link */
:root:has(meta[name="ems-view"][content$="PassView"]) #main-content > * {
  margin: auto -14px auto 0 !important;
  padding: 7.5px 14px 7.5px 12.5px !important;
  border: 1px solid transparent;
}

#pwdmain > h3 {
  margin-bottom: 27.5px;
  text-align: center;
}

#pwdmain #passwordManagementForm {
  display: flex;
  flex-direction: column;
}

#passwordManagementForm > :has(#currentPassword) {
  order: 1;
}

#passwordManagementForm > :has(#password) {
  order: 2;
}

#main-content #password-strength-notes {
  display: contents !important;
}

#password-policy-violation-msg {
  order: 3;
}

#passwordManagementForm > :has(#strengthProgressBar) {
  order: 4;
}

#passwordManagementForm > :has(#confirmedPassword) {
  order: 5;
}

#password-confirm-mismatch-msg {
  order: 6;
}

#passwordManagementForm > :has(#submit) {
  order: 7;
}

#main-content #password-strength-msg, #passwordManagementForm a.mdc-button--outline,
#passwordManagementForm > :has(#strengthProgressBar) > :not(#strengthProgressBar) {
  display: none !important;
}

#main-content #password-policy-violation-msg, #main-content #password-confirm-mismatch-msg {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0;
  font-size: 0;
  color: red;
  background: none;
}

#password-policy-violation-msg > .mdi, #password-confirm-mismatch-msg > .mdi {
  display: none;
}

#password-policy-violation-msg strong, #password-confirm-mismatch-msg strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

/* The strength meter: a 10px bar with its verdict below */
#strengthProgressBar {
  height: 10px;
  margin: 5px 0 10px;
  background: #d8d6d6;
}

#strengthProgressBar .mdc-linear-progress {
  display: none;
}

#progress-strength-indicator {
  box-sizing: content-box;
  height: 10px;
  padding-top: 10px;
  overflow: visible;
  font-size: 12px;
  line-height: 22.5px;
  text-align: left;
  white-space: nowrap;
  background: linear-gradient(currentColor 0 0) 0 0 / 100% 10px no-repeat;
}

#progress-strength-indicator[style*="width: 20%"] {
  width: 2% !important;
  color: #000;
}

#progress-strength-indicator[style*="width: 40%"] {
  width: 20% !important;
  color: red;
}

#progress-strength-indicator[style*="width: 60%"] {
  width: 40% !important;
  color: orange;
}

#progress-strength-indicator[style*="width: 80%"] {
  width: 66% !important;
  color: #73ab1d;
}

#progress-strength-indicator[style*="width: 100%"] {
  width: 100% !important;
  color: green;
}

/* *************************************************************************************************
  Logout, a disabled account, errors: an alert across the page below the header
************************************************************************************************* */

:root:has(meta[name="ems-view"][content^="logout/"]) #main-content,
:root:has(meta[name="ems-view"][content^="error"]) #main-content,
:root:has(meta[name="ems-view"][content^="login-error/casAccount"]) #main-content,
:root:has(meta[name="ems-view"][content="login/casGenericSuccessView"]) #main-content {
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  background: #fff;
  box-shadow: none;
}

:root:has(meta[name="ems-view"][content^="logout/"]) #main-content > *,
:root:has(meta[name="ems-view"][content^="error"]) #main-content > *,
:root:has(meta[name="ems-view"][content^="login-error/casAccount"]) #main-content > *,
:root:has(meta[name="ems-view"][content="login/casGenericSuccessView"]) #main-content > * {
  margin: 0 !important;
}

:root:has(meta[name="ems-view"][content^="logout/"]) #main-content .mdc-card,
:root:has(meta[name="ems-view"][content^="error"]) #main-content .mdc-card,
:root:has(meta[name="ems-view"][content^="login-error/casAccount"]) #main-content .mdc-card,
:root:has(meta[name="ems-view"][content="login/casGenericSuccessView"]) #main-content .mdc-card {
  padding: 7.5px 12.5px !important;
  border: 1px solid #f5c6cb;
  border-radius: 2.5px;
  color: #721c24;
  background: #f8d7da;
}

:root:has(meta[name="ems-view"][content^="logout/"]) #main-content .mdc-card,
:root:has(meta[name="ems-view"][content="login/casGenericSuccessView"]) #main-content .mdc-card {
  border-color: #c3e6cb;
  color: #155724;
  background: #d4edda;
}

#logoutMessage {
  margin-bottom: 5px !important;
}

/* The old error pages ended with one or two empty lines */
:root:has(meta[name="ems-view"][content="error/403"]) #main-content .mdc-card,
:root:has(meta[name="ems-view"][content="error/404"]) #main-content .mdc-card,
:root:has(meta[name="ems-view"][content="error/405"]) #main-content .mdc-card {
  padding-bottom: 30px !important;
}

:root:has(meta[name="ems-view"][content="error/401"]) #main-content .mdc-card {
  padding-bottom: 52.5px !important;
}

:root:has(meta[name="ems-view"][content="error/404"]) #main-content .mdc-card {
  border-color: #bee5eb;
  color: #0c5460;
  background: #d1ecf1;
}

:root:has(meta[name="ems-view"][content^="error"]) #main-content .mdc-card * {
  font-family: Verdana, sans-serif;
}

:root:has(meta[name="ems-view"][content^="error"]) #main-content .mdc-button {
  display: none;
}

/* CAS offers to unlock a disabled or locked account, which the EMS password management cannot do */
:root:has(meta[name="ems-view"][content^="login-error/casAccount"]) #main-content .mdc-card > div {
  display: none;
}
