/* Page shell (unchanged) */
body {
  background-color: #fff;
}

.sdps-background--grouped-primary,
.login-page-content,
.login-page-content main {
  background-color: transparent;
}

/* Iframed LMS block: 301×267px content area on client.schwab.com */
.legacy-size .login-module .lms-iframe-wrapper {
  width: 301px;
  max-width: 301px;
  padding: 0;
  line-height: normal;
}

.login-widget {
  width: 301px;
  max-width: 100%;
  max-height: 267px;
  margin-bottom: 16px;
  box-sizing: border-box;
  text-align: left;
}

.login-widget .login-widget__fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.login-widget .sdps-form-element {
  margin: 0 0 4px;
}

.login-widget .sdps-form-element:last-of-type {
  margin-bottom: 6px;
}

.login-widget label.field-label {
  display: block;
  margin: 0 0 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #000;
}

/* Iframed LMS (301×267): 30px fields, 13px type, 1px radius */
.login-widget input.sdps-input {
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  color: #000;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 1px;
  box-sizing: border-box;
}

/* LMS widget: thin border highlight on focus (not a thick outline box) */
.login-widget input.sdps-input:hover,
.login-widget input.sdps-input:focus,
.login-widget input.sdps-input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 1px solid rgb(3, 125, 174) !important;
}

/* Start Page — native select, smaller than text fields (matches #landingPageOptions) */
.login-widget select.start-page-select {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  background-color: #fff;
  border: 1px solid #b1b1b1;
  border-radius: 3px;
  box-sizing: border-box;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}

.login-widget select.start-page-select option {
  font-weight: 400;
  font-size: 14px;
}

.login-widget select.start-page-select:hover,
.login-widget select.start-page-select:focus,
.login-widget select.start-page-select:focus-visible {
  outline: none;
  box-shadow: none;
  border: 1px solid rgb(3, 125, 174) !important;
}

.login-widget .password-wrap {
  position: relative;
}

.login-widget .password-wrap .sdps-input {
  padding-right: 30px;
}

.login-widget .password-wrap:focus-within input.sdps-input {
  outline: none;
  box-shadow: none;
  border: 1px solid rgb(3, 125, 174) !important;
}

.login-widget .eye-pos {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  max-width: 45px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0 1px 1px 0;
  box-sizing: border-box;
  cursor: pointer;
  z-index: 1;
}

.login-widget .eye-pos:hover {
  border-color: rgb(3, 125, 174) !important;
}

.login-widget .password-wrap:focus-within .eye-pos:hover {
  border-color: transparent !important;
}

.login-widget .eye-icon {
  display: block;
  width: 26.5px;
  height: 28px;
  background-repeat: no-repeat;
  background-size: 100%;
}

.login-widget .eye-icon.eyeShow {
  background-image: url("../images/eye_show_light.svg");
}

.login-widget .eye-icon.eyeHide {
  background-image: url("../images/eye_hide_light.svg");
}

.login-widget .eye-pos-hover {
  visibility: hidden;
  display: none;
  position: absolute;
  right: 0;
  bottom: -28px;
  z-index: 2;
  width: 125px;
  padding: 4px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #333;
  text-align: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.login-widget .eye-pos:hover + .eye-pos-hover {
  visibility: visible;
  display: block;
}

.login-widget .remember-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #000;
}

.login-widget .remember-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
}

.login-widget .remember-row label {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  cursor: pointer;
}

.login-widget button.sdps-button.login-submit,
.login-widget button.sdps-button.sdps-button--primary.login-submit {
  display: block;
  width: 156px;
  height: 30px !important;
  min-height: 30px !important;
  margin: 10px auto 0;
  padding: 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  color: #fff;
  text-align: center;
  background-color: #005f83;
  border: none;
  border-radius: 1px;
  box-shadow: none;
  cursor: pointer;
}

.login-widget button.sdps-button.login-submit:hover,
.login-widget button.sdps-button.sdps-button--primary.login-submit:hover {
  background-color: #005272;
}

.login-widget button.sdps-button.login-submit:active,
.login-widget button.sdps-button.sdps-button--primary.login-submit:active {
  background-color: #004966;
}

@media (max-width: 767px) {
  .legacy-size .login-module .lms-iframe-wrapper,
  .login-widget {
    width: 100%;
    max-width: 301px;
  }
}
