:root {
  color-scheme: light;
  --ink: #242124;
  --muted: #676369;
  --line: #e4e3e5;
  --orange: #fb842b;
  --orange-hover: #f47314;
  --focus: #a34500;
}
* { box-sizing: border-box; letter-spacing: 0; }
html { min-height: 100%; background: #f7f7f8; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #f7f7f8;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  border-top: 4px solid var(--orange);
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: white; padding: 12px; z-index: 30; }
.skip-link:focus { top: 12px; }
.page-header, .page-footer {
  width: min(100% - 80px, 1280px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.page-header { min-height: 68px; font-size: 13px; }
.portal-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-mark { width: 7px; height: 18px; border-radius: 2px; background: var(--orange); }
.institutional-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.main-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 16px 20px 24px; }
.login-panel {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 42px;
  box-shadow: 0 8px 28px #24212406;
}
.brand { padding-bottom: 20px; border-bottom: 1px solid #eeeeef; margin-bottom: 20px; }
.brand img { display: block; width: 224px; max-width: 100%; height: auto; }
.panel-heading { margin-bottom: 20px; }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
h1 { font-size: 26px; line-height: 1.25; font-weight: 650; margin: 0; }
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field input, #select-server, .twofa-popin input[type="text"] {
  display: block;
  width: 100%;
  height: 48px;
  min-width: 0;
  border: 1px solid #cbc9cd;
  border-radius: 5px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #77737a; opacity: 1; }
.field input:focus, .twofa-popin input[type="text"]:focus, #select-server:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px #fb842b24; }
#tr-password { display: block !important; position: relative; width: 100%; }
#Editbox2 { padding-right: 52px; }
.password-toggle { position: absolute; right: 3px; top: 3px; width: 42px; height: 42px; border: 0; border-radius: 3px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.password-toggle:hover { background: #f2f2f3; }
.password-toggle svg { color: var(--muted); }
.caps-warning { margin: 8px 0 0; color: #8c4300; font-size: 12px; }
.login-button, .twofa-popin input[type="button"], #divcenter_remoteapp2install input {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 650 15px "Segoe UI", Arial, sans-serif;
  color: #211b16;
  background: var(--orange);
  cursor: pointer;
  transition: background .15s;
}
.login-button { margin-top: 20px; }
.login-button:hover, .twofa-popin input[type="button"]:hover { background: var(--orange-hover); }
.login-button[aria-busy="true"] { background: #ffd7b8; }
.error-msg, .script-warning { margin: 0; padding: 12px 14px; border: 1px solid #efc9c4; background: #fff4f2; color: #932d23; border-radius: 5px; font-size: 13px; overflow-wrap: anywhere; }
.script-warning { margin-top: 12px; }
.cloud-partner { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.cloud-partner a { display: inline-flex; align-items: center; padding: 5px 0; }
.cloud-partner img { display: block; width: 112px; height: auto; }
.page-footer { min-height: 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; padding-block: 14px; }
/* These identifiers are owned by the TSplus authentication scripts. */
#tr-domain, #select-server, #accesstypeuserpanel, #span-credentials-ko { display: none; }
#span-credentials-ko[style*="inline"], #tr-domain[style*="inline"] { display: block !important; }
#select-server { margin-bottom: 20px; }
#span-login-ok, #span-login-ko, #span-password-ok, #span-password-ko { display: none; }
.status-ico { position: absolute; right: 0; top: 3px; height: 15px; width: 15px; }
#tr-verifypassword, #retype-password-label, #retype-password-input { display: none; }
.twofa-popin { position: fixed; inset: 0; z-index: 20; padding: 24px 16px; overflow: auto; background: #14131699; visibility: hidden; opacity: 0; }
.twofa-popin:target { visibility: visible; opacity: 1; }
.twofa-popin .sp-body { position: relative; width: 100%; max-width: 440px; margin: 5vh auto; background: #fff; padding: 32px; border-radius: 8px; }
.twofa-popin h2 { margin: 0 28px 22px 0; font-size: 22px; line-height: 1.3; }
.twofa-popin h4 { font-size: 14px; margin: 20px 0 10px; }
.twofa-popin ol { padding-left: 20px; font-size: 14px; }
.twofa-popin input { margin-block: 10px; }
.twofa-popin .error { display: block; color: #932d23; font-size: 13px; }
.twofa-popin .sp-close { position: absolute; right: 12px; top: 8px; display: grid; place-items: center; width: 40px; height: 40px; font-size: 27px; }
#twofaqrcode { max-width: 100%; width: 200px; height: auto; }
@media (max-width: 520px) {
  .page-header, .page-footer { width: calc(100% - 40px); }
  .page-header { min-height: 68px; font-size: 12px; gap: 12px; }
  .main-content { padding: 20px 20px 32px; }
  .login-panel { padding: 30px 24px; }
  .brand img { width: 235px; }
  h1 { font-size: 24px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .twofa-popin .sp-body { padding: 24px; }
}
@media (max-width: 360px) {
  .page-header, .page-footer { width: calc(100% - 28px); }
  .main-content { padding-inline: 14px; }
  .login-panel { padding: 26px 20px; }
  .cloud-partner { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
