.password-field-wrap {
  position: relative;
}

.password-field-wrap .pass-reveal {
  position: absolute;
  right: 12px;
  top: 38px;
  bottom: auto;
  float: none;
  z-index: 2;
}

.form-company-login .btn-login,
#sendCodeBtn,
#submitCodeBtn {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

.login-error-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  height: auto !important;
  min-height: 0 !important;
}

.login-error-wrap .login-wrong:not(.hidden) {
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

.form-company-login.step-form {
  height: auto;
  min-height: 465px;
  padding: 42px 105px;
  margin-bottom: 15px;
}

/* Override layout rule that floats ALL spans (breaks method labels & code text) */
.form-company-login .method-option span,
.form-company-login .step-text span,
.form-company-login .resend-text span {
  position: static;
  bottom: auto;
  float: none;
  right: auto;
  cursor: inherit;
}

.method-options {
  margin-bottom: 8px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.method-option input {
  margin: 0;
  flex-shrink: 0;
}

.method-option span {
  flex: 1;
  line-height: 1.4;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 12px;
  line-height: 1.3;
  word-wrap: break-word;
}

.step-text {
  font-size: 14px;
  color: #4a4949;
  margin: 0 0 20px;
  line-height: 1.5;
  word-wrap: break-word;
}

.step-text #codeDestinationText {
  font-weight: 600;
  white-space: normal;
}

.resend-text {
  margin-top: 20px;
  font-size: 14px;
  color: #4a4949;
}

.page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loading__box {
  background: #fff;
  border: 1px solid #DBDFE2;
  border-radius: 8px;
  padding: 16px 28px;
  font-size: 14px;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-error-wrap .login-wrong {
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .wrapper-half {
    display: none;
  }

  .login-wrapper.half {
    width: 100%;
    padding: 1.5rem 0 !important;
  }

  .login-body {
    padding: 0 12px;
  }

  .form-company-login,
  .form-company-login.step-form {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 28px 20px;
    box-sizing: border-box;
  }

  .form-company-login .btn-login,
  #sendCodeBtn,
  #submitCodeBtn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .login-wrong {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .step-title {
    font-size: 20px;
  }

  .resend-text {
    line-height: 1.5;
  }
}
