/* Standalone layout + icon fixes for cPanel Webmail */

.d-none {
  display: none !important;
}

/* Vertically center the login card like the original page */
body.wm {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#login-wrapper {
  margin: 0 auto;
  width: 100%;
  min-height: auto;
  flex: 0 0 auto;
}

#login-wrapper .wrapper {
  width: 100%;
}

#content-container {
  width: 100%;
  text-align: center;
}

#login-container {
  margin: 0 auto;
  width: 356px;
  max-width: 100%;
}

#login-sub-container {
  position: relative;
  width: 345px;
  max-width: 100%;
  margin: 0 auto;
  left: 0;
}

#login-sub-header {
  height: 65px !important;
  padding: 10px 0 0 !important;
  text-align: center;
  position: relative;
  z-index: 2;
}

#login-sub-header img.main-logo {
  height: 50px;
  margin-left: 0;
}

#login-sub {
  height: auto !important;
  min-height: 220px;
  padding: 0 0 0 30px !important;
  position: relative;
  text-align: left;
}

#forms {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  width: 100%;
}

/* Let the dynamic mount point behave as if the form is a direct child of #forms */
#app-root {
  display: contents;
}

#login_form {
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  margin: 0;
  width: 100%;
  max-width: 285px;
}

#form-error.error-notice {
  visibility: visible;
  margin: 0 0 12px;
  max-width: 285px;
}

#login_form .input-field-login.icon {
  width: 285px;
  max-width: 100%;
  box-sizing: border-box;
}

#login_form .controls {
  width: 285px !important;
  max-width: 100%;
  font-size: 0;
  box-sizing: border-box;
}

#login_form .controls .login-btn {
  float: left;
  width: 100%;
  padding-top: 15px;
  box-sizing: border-box;
}

#login_form .controls .login-btn button,
#login_form #login_submit {
  display: block;
  width: 100% !important;
  box-sizing: border-box;
  background-color: #179bd7;
  border: 1px solid #095779;
  border-radius: 4px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 0;
  cursor: pointer;
}

#login_form .controls .login-btn button:hover,
#login_form #login_submit:hover {
  background-color: #095779;
}

#login_form .controls .reset-pw {
  float: right;
  width: 100%;
  padding: 25px 0;
  text-align: center;
  clear: both;
}

#login_form .controls .reset-pw a {
  color: #293a4a;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

#login_form .controls .reset-pw a:hover {
  color: #d03f00;
}

div.username-container {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%237f7f7f'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") !important;
}

div.password-container {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%237f7f7f'%3E%3Cpath d='M17 8h-1V6a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2zm-3 0H10V6a2 2 0 0 1 4 0v2z'/%3E%3C/svg%3E") !important;
}

html[dir="ltr"] .input-field-login.icon.username-container,
html[dir="ltr"] .input-field-login.icon.password-container {
  background-position: 6px 6px;
}

#locale-footer {
  display: block;
  margin-top: 48px;
  text-align: center;
}

#locale-footer .locale-container {
  max-width: 900px;
  margin: 0 auto;
}

#locale-footer #locales_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

#locale-footer #locales_list li {
  display: inline;
}

#locale-footer #locales_list a {
  color: #333;
  font-size: 12px;
  text-decoration: none;
}

#locale-footer #locales_list a:hover {
  text-decoration: underline;
}

#locale-footer #mobilelocalemenu {
  display: none;
}

.copyright {
  margin-top: 24px;
  padding-top: 30px;
  text-align: center;
  font-size: 11px;
  color: #666;
}

.copyright a {
  color: #666;
}
