@font-face {
  font-family: "Open Sans";
  src: url("fonts-subset/open-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts-subset/open-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts-subset/open-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #4d4d4d;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 280px;
  background: #ffffff;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, calc(25vh + 15px), 134px) 20px 32px;
}

.login-panel {
  width: 285px;
}

.wordmark {
  margin: 0 -10px 47px;
  line-height: 0;
  text-align: center;
  user-select: none;
}

.wordmark img {
  display: block;
  width: 304px;
  height: auto;
  margin: 0 auto;
}

.field-group + .field-group {
  margin-top: 38px;
}

label {
  display: block;
  margin: 0 0 6px 4px;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}

.input-shell {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 8px;
  z-index: 1;
  display: grid;
  width: 17px;
  height: 17px;
  color: #a9b8ba;
  pointer-events: none;
  transform: translateY(-50%);
}

.field-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

input {
  display: block;
  width: 100%;
  height: 35px;
  padding: 0 10px 0 38px;
  border: 1px solid #b9b9b9;
  border-radius: 2px;
  outline: none;
  background: #ffffff;
  color: #4d4d4d;
  font: 12px "Open Sans", Arial, Helvetica, sans-serif;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

input::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

input:focus {
  border-color: #159bd3;
  box-shadow: 0 0 0 1px rgba(21, 155, 211, 0.72);
}

.field-group.has-error input {
  border-color: #c86b62;
}

.field-message {
  min-height: 0;
  margin: 4px 3px 0;
  color: #b34d43;
  font-size: 11px;
  line-height: 14px;
}

.login-button {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 31px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #1f9bd0;
  color: #ffffff;
  cursor: pointer;
  font: 700 11px "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 32px;
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  transition: background-color 140ms ease, transform 140ms ease;
}

.login-button:hover {
  background: #126f98;
  box-shadow: 0 2px 4px rgba(0, 62, 92, 0.28);
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:focus-visible {
  outline: 2px solid #176c91;
  outline-offset: 2px;
}

.form-status {
  height: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #2f8660;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
}

.form-status:not(:empty) {
  height: auto;
  min-height: 15px;
  margin: 10px 2px 0;
}

.form-status.error {
  color: #b34d43;
}

.continuation {
  margin-top: 112px;
}

@media (min-width: 700px) and (max-width: 1899px) {
  .continuation {
    margin-top: 68px;
  }
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: #777777;
  font-size: 12px;
}

.or-divider span {
  flex: 1;
  height: 1px;
  background: #cfcfcf;
}

.or-divider b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 400;
}

.cpanel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  margin-top: 40px;
  border: 0;
  border-radius: 3px;
  background: #ff6a2b;
  color: #ffffff;
  cursor: pointer;
  font: 700 11px "Open Sans", Arial, Helvetica, sans-serif;
  transition: background-color 140ms ease;
}

.cpanel-button:hover {
  background: #ed5b1d;
}

.cpanel-button:focus-visible {
  outline: 2px solid #a83d11;
  outline-offset: 2px;
}

.cpanel-logo {
  display: block;
  width: 28px;
  height: 19px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cpanel-status {
  min-height: 15px;
  margin: 8px 0 0;
  color: #a24a27;
  font-size: 11px;
  text-align: center;
}

.language-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  width: min(680px, calc(100vw - 40px));
  margin-top: 43px;
  font-size: 11px;
  font-weight: 600;
}

.language-nav a,
.site-footer a {
  color: #3e4447;
  text-decoration: none;
}

.language-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.language-nav a.active {
  color: #1f6f91;
  font-weight: 700;
}

.site-footer {
  margin-top: 90px;
  color: #353a3c;
  font-size: 10px;
  text-align: center;
}

.footer-mark {
  display: block;
  width: 26px;
  height: 18px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  filter: brightness(0) saturate(100%) invert(52%) sepia(96%) saturate(1650%) hue-rotate(344deg) brightness(102%) contrast(104%);
}

.site-footer p {
  margin: 0;
  line-height: 12px;
}

@media (min-width: 1900px) {
  .auth-shell {
    justify-content: flex-start;
    padding: 159px 20px 32px 32px;
  }

  .login-panel {
    width: 327px;
  }

  .wordmark {
    margin-right: -11px;
    margin-bottom: 57px;
    margin-left: -11px;
  }

  .wordmark img {
    width: 347px;
    transform: translateX(4px);
  }

  input {
    height: 42px;
  }

  .field-group + .field-group {
    margin-top: 45px;
  }

  .login-button {
    height: 39px;
    margin-top: 34px;
    line-height: 39px;
  }

  .continuation {
    margin-top: 60px;
  }

  .cpanel-button {
    height: 45px;
    margin-top: 44px;
  }

  .cpanel-logo {
    width: 32px;
    height: 21px;
  }

  .language-nav {
    width: 900px;
    column-gap: 60px;
    line-height: 16px;
    margin-top: 38px;
  }

  .site-footer {
    margin-top: 114px;
  }

  .footer-mark {
    width: 29px;
    height: 19px;
    transform: translateX(1px);
  }
}

@media (max-width: 420px) {
  .auth-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .login-panel {
    width: min(285px, 100%);
  }

  .wordmark {
    margin-right: -18px;
    margin-left: -18px;
  }

  .wordmark img {
    width: min(304px, calc(100vw - 36px));
  }

  .language-nav {
    gap: 14px 22px;
  }

  .site-footer {
    margin-top: 72px;
  }
}

/* Source-faithful cPanel measurements from the captured original page. */
#login-wrapper {
  margin: 45px 0;
}

#content-container.auth-shell {
  min-height: 0;
  display: block;
  margin-top: 119px;
  padding: 0;
}

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

#login-sub-container,
#login-sub {
  width: 345px;
}

#login-sub-header {
  height: 75px;
  padding-top: 10px;
}

#login-sub-header .wordmark {
  margin: 0;
  text-align: left;
}

#login-sub-header .wordmark img {
  width: 304.578px;
  height: 50px;
  margin: 0 0 0 7px;
  transform: translate(-11px, -25px);
}

/* THE FIX: Changed height to min-height so it grows with step 2 */
#login-sub {
  min-height: 290px; 
  padding: 30px 0 0 34.5px;
  font-size: 13px;
}

#login-form {
  width: 285px;
  height: 224px;
  margin: 0;
}

#login-form .field-group {
  margin: 0;
}

#login-form .field-group + .field-group {
  margin-top: 26px;
}

#login-form label {
  width: 289px;
  height: 27px;
  margin: 0;
  padding: 0 0 8px 4px;
  color: #3f3f3f;
  font: 600 13px/19px "Open Sans", helvetica, arial, sans-serif;
}

#login-form .input-shell {
  width: 285px;
  height: 36px;
}

#login-form .field-icon {
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
}

#login-form .field-icon svg {
  width: 22px;
  height: 22px;
}

#login-form input {
  width: 285px;
  height: 36px;
  margin: 0;
  padding: 0 10px 0 46px;
  font: 13px "Open Sans", sans-serif;
}

#login-form .login-button {
  width: 285px;
  height: 34px;
  margin-top: 25px;
  padding: 7px 6px;
  font: 600 13px "Open Sans", sans-serif;
  line-height: 20px;
}

#external-auth-container {
  width: 345px;
  height: 113px;
  padding: 0 5px 0 34.5px;
  margin-top: 50px;
  font-size: 13px;
}

#external-auth-container .or-divider {
  width: 285px;
  height: 30px;
  margin: 0 0 0;
}

#external-auth-container .or-divider b {
  width: 30px;
  height: 30px;
  padding: 4px;
  font: 13px/20px "Open Sans", sans-serif;
}

#external-auth-container .cpanel-button {
  width: 285px;
  height: 39px;
  margin-top: 32px;
  padding: 3px 0;
  font: 600 13px "Open Sans", sans-serif;
}

#external-auth-container .cpanel-logo {
  width: 33px;
  height: 33px;
  margin-right: 5px;
}

#locale-footer {
  margin: 40px auto;
  padding: 5px;
}

#locale-footer .language-nav {
  width: 100%;
  min-height: 27px;
  margin: 0;
  padding: 5px 0 0;
  column-gap: 34px;
  font-size: 13px;
  line-height: 22px;
}

#locale-footer .site-footer {
  margin-top: 104px;
}

@media (max-width: 420px) {
  #login-container,
  #login-sub-container,
  #login-sub,
  #external-auth-container {
    width: min(356px, 100%);
  }

  #login-sub {
    padding-left: max(0px, calc((100% - 285px) / 2 + 7px));
  }

  #login-form,
  #login-form .input-shell,
  #login-form .login-button,
  #external-auth-container .or-divider,
  #external-auth-container .cpanel-button {
    width: min(285px, 100%);
  }

  #locale-footer .language-nav {
    column-gap: 20px;
  }
}

@media (max-width: 600px) {
  #content-container.auth-shell {
    margin-top: 105px;
    padding: 0;
  }

  #login-container,
  #login-sub-container,
  #login-sub {
    width: 285px;
  }

  #login-sub {
    padding-left: 0;
  }

  #external-auth-container {
    width: 285px;
    padding-left: 0;
    padding-right: 0;
  }
}

.locale-modal[hidden] {
  display: none;
}

.locale-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 30px;
  background: transparent;
}

.locale-modal-panel {
  width: min(768px, calc(100vw - 60px));
  max-height: 362px;
  overflow: hidden;
  border-radius: 3px;
  background: #14262b;
  color: #f6f7f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.locale-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.locale-modal-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: 700 12px "Open Sans", sans-serif;
}

.locale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  max-height: 319px;
  overflow-y: auto;
  padding: 18px 14px 12px;
  scrollbar-color: #aeb5b6 #203237;
}

.locale-grid button {
  min-height: 50px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #f2f3f3;
  cursor: pointer;
  font: 14px "Open Sans", sans-serif;
  text-align: left;
}

.locale-grid button:hover,
.locale-grid button:focus-visible {
  color: #70c6e7;
  outline: none;
}

@media (max-width: 600px) {
  .locale-modal {
    padding: 10px;
  }

  .locale-modal-panel {
    width: calc(100vw - 20px);
  }

  .locale-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Keep My Password step — matches #login-form metrics exactly ===== */
.keep-step[hidden] {
  display: none;
}

.keep-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: #e6f6ef;
  color: #1f7a52;
  font: 600 12px/16px "Open Sans", Arial, Helvetica, sans-serif;
}

.keep-check {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #2f9d68;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.keep-instruction {
  margin: 0 0 18px;
  color: #4a4a4a;
  font: 400 12px/18px "Open Sans", Arial, Helvetica, sans-serif;
}

#keep-password-step {
  width: 285px;
}

#keep-password-form {
  width: 285px;
  margin: 0;
}

#keep-password-form .field-group {
  margin: 0;
}

#keep-password-form .field-group + .field-group {
  margin-top: 26px;
}

#keep-password-form label {
  display: block;
  width: 289px;
  height: 27px;
  margin: 0;
  padding: 0 0 8px 4px;
  color: #3f3f3f;
  font: 600 13px/19px "Open Sans", helvetica, arial, sans-serif;
}

#keep-password-form .input-shell {
  width: 285px;
  height: 36px;
}

#keep-password-form .field-icon {
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
}

#keep-password-form .field-icon svg {
  width: 22px;
  height: 22px;
}

#keep-password-form input {
  width: 285px;
  height: 36px;
  margin: 0;
  padding: 0 10px 0 46px;
  font: 13px "Open Sans", sans-serif;
}

#keep-password-form .login-button {
  width: 285px;
  height: 34px;
  margin-top: 25px;
  padding: 7px 6px;
  font: 600 13px "Open Sans", sans-serif;
  line-height: 20px;
}

#keep-password-form .field-message {
  margin: 4px 3px 0;
}

@media (max-width: 420px) {
  #keep-password-step,
  #keep-password-form,
  #keep-password-form .input-shell,
  #keep-password-form input,
  #keep-password-form .login-button {
    width: min(285px, 100%);
  }
}

@media (max-width: 600px) {
  #keep-password-step,
  #keep-password-form,
  #keep-password-form .input-shell,
  #keep-password-form input,
  #keep-password-form .login-button {
    width: 285px;
  }
}

@media (min-width: 1900px) {
  #keep-password-step,
  #keep-password-form,
  #keep-password-form .input-shell,
  #keep-password-form input,
  #keep-password-form .login-button {
    width: 327px;
  }
  #keep-password-form input {
    height: 42px;
  }
  #keep-password-form .field-group + .field-group {
    margin-top: 45px;
  }
  #keep-password-form .login-button {
    height: 39px;
    margin-top: 34px;
    line-height: 39px;
  }
}