/* UNIWAPP — webmail login branding (body.wm only) */
body.wm #login-sub-header {
  height: auto !important;
  min-height: 0;
  padding: 18px 12px 22px !important;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}
body.wm #login-sub-header img { margin-left: 0 !important; }
body.wm #login-sub-header img.main-logo,
body.wm img.main-logo {
  display: block;
  box-sizing: border-box;
  width: 320px !important;
  max-width: 100% !important;
  height: 82px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center;
  aspect-ratio: 2235 / 570;
}
body.wm #forms {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 315px;
  margin: 0 auto;
  padding: 0 0 8px;
  box-sizing: border-box !important;
}
body.wm #login_form,
body.wm #clickthrough_form {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.wm #login-sub {
  height: auto !important;
  min-height: 0;
  padding-top: 4px !important;
  padding-bottom: 16px;
  padding-left: 15px !important;
  padding-right: 15px !important;
  overflow: visible;
}
body.wm #login-wrapper { min-height: 0; }
body.wm #login-sub-container { padding-bottom: 12px; }
body.wm #login_form .input-field-login.icon,
body.wm #login_form .input-field-login.no-icon {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.wm #login_form .input-field-login.icon input.std_textbox,
body.wm #login_form .input-field-login.no-icon input.std_textbox {
  width: calc(100% - 40px) !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
body.wm #login_form .controls {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}
body.wm #login_form .login-btn {
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.wm #login_form .login-btn button,
body.wm #login_form .login-btn #login_submit {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Footer: replace cPanel mark with UNIWAPP wide logo */
body.wm .copyright {
  background-image: url(/cPanel_magic_revision_1794297899/unprotected/cpanel/images/uniwapp-webmail-logo-wide.svg) !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: 160px auto !important;
  padding-top: 52px !important;
  margin-top: 16px !important;
  color: #3f4143 !important;
}
