/* RCS portal theme. Uses the supported TSplus custom stylesheet. */
html:has(#logonformid) { font-family: "Segoe UI", Arial, sans-serif; }
body:has(#logonformid) { margin: 0; min-height: 100vh; display: flow-root; }
#divcenter:has(#logonformid) {
  box-sizing: border-box;
  position: relative;
  left: auto;
  top: auto;
  width: 360px;
  margin: max(40px, calc((100vh - 540px) / 2)) 8vw 40px auto;
  padding: 32px;
  color: #f4f5f0;
  background: rgba(15, 18, 13, .48);
  border: 1px solid rgba(169, 212, 55, .28);
  border-top: 3px solid #a9d437;
  border-radius: 16px;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .45);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  backdrop-filter: blur(2px);
}
#divcenter .logo {
  content: url("rcs-assets/logo-rcs.png");
  display: block;
  width: 138px;
  max-width: 100%;
  height: auto;
  margin: 0 0 24px;
}
#divcenter > p, #divcenter .rcs-intro, #divcenter .rcs-footer { display: none; }
#divcenter .rcs-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#divcenter #Editbox2 { margin-top: 16px; }
#divcenter #tr-password[style*="table-row"], #divcenter #tr-domain[style*="table-row"] { display: block !important; }
#divcenter input[type="text"],
#divcenter input[type="password"],
#divcenter select {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #46503e;
  border-radius: 7px;
  background: #171d15;
  color: #f4f5f0;
  font: 14px "Segoe UI", Arial, sans-serif;
  line-height: normal;
  transition: border-color .15s, box-shadow .15s;
}
#divcenter input::placeholder { color: #8d9885; opacity: 1; }
#divcenter input:focus-visible, #divcenter select:focus-visible {
  outline: 2px solid #b0dc44;
  outline-offset: 3px;
}
#divcenter input[type="text"]:focus, #divcenter input[type="password"]:focus { border-color: #a9d437; }
#divcenter input[type="button"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  height: auto;
  margin: 21px 0 0;
  padding: 13px 16px;
  border: 1px solid #a9d437;
  border-radius: 7px;
  background: #a9d437;
  color: #152007;
  font: 600 15px "Segoe UI", Arial, sans-serif;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s;
}
#divcenter input[type="button"]:hover { background: #bde75b; border-color: #bde75b; }
#divcenter input[type="button"]:disabled { opacity: .65; cursor: wait; }
#divcenter #accesstypeuserpanel { margin-top: 19px; text-align: left; }
#divcenter #accesstypeuserpanel label { margin: 0 20px 0 0; line-height: 24px; color: #d7dece; font-size: 12px; cursor: pointer; }
#divcenter input[type="radio"] { width: 14px; height: 14px; margin: 0 5px 0 0; vertical-align: -2px; accent-color: #a9d437; }
#divcenter #span-credentials-ko { color: #ffc7bd; font-size: 13px; line-height: 1.5; }
#divcenter #divcenter_remoteapp2install { font-size: 13px; line-height: 1.6; color: #d7dece; }
/* Keep verification dialogs above the portal and usable on narrow screens. */
body:has(#logonformid) .twofa-popin { z-index: 100; }
body:has(#logonformid) .twofa-popin .sp-body { box-sizing: border-box; min-width: 0; width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto; border-radius: 12px; }
@media (max-width: 700px) {
  #divcenter:has(#logonformid) { width: calc(100% - 32px); max-width: 360px; margin: 32px auto; padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { #divcenter input { transition: none; } }
