.login-module-wrapper.legacy-size {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  width: min(calc(100% - 48px), 1555px);
  max-width: none;
  margin: 31px auto 40px;
  transform: none;
}

.login-module.with-solo-banner {
  box-sizing: border-box;
  flex: 0 0 458px;
  width: 458px;
  min-height: 556px;
  padding: 42px 40px 36px;
  border: 1px solid #d1d1d1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lms-iframe-wrapper,
.schwab-login-form {
  width: 100% !important;
  max-width: none !important;
}

.schwab-login-form {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.schwab-login-form .login-module-header {
  margin: 0 0 26px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.schwab-login-form .login-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.schwab-form-field {
  margin-bottom: 6px;
}

.schwab-form-field label,
.schwab-start-label {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.2;
  text-align: left;
}

.schwab-text-input,
.schwab-select {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 18px;
  line-height: 1.2;
  padding: 4px 10px;
}

.schwab-text-input:focus,
.schwab-select:focus {
  border-color: #000;
  box-shadow: inset 0 0 0 1px #000;
  outline: none;
}

.schwab-text-input[aria-invalid="true"],
.schwab-select[aria-invalid="true"] {
  border-color: #c10b14;
}

.schwab-login-error {
  margin: 6px 0 0;
  color: #c10b14;
  font-size: 15px;
  line-height: 1.35;
  opacity: 0;
}

.schwab-login-error.is-visible {
  animation: schwab-error-fade 4s ease-in-out forwards;
}

@keyframes schwab-error-fade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.schwab-login-button {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  margin-top: 14px;
  border: 1px solid #0076ce;
  border-radius: 4px;
  background-color: #0076ce;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.schwab-login-button:hover {
  background-color: #005a9e;
  border-color: #005a9e;
}

.schwab-login-button:active {
  background-color: #004477;
  border-color: #004477;
}

.schwab-login-button:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.schwab-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  font-size: 15px;
  cursor: pointer;
}

.schwab-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.schwab-password-wrap input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.password-toggle.is-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}


.schwab-code-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 18px;
}

.schwab-code-digit {
  box-sizing: border-box;
  width: 48px;
  height: 52px;
  font-size: 24px !important;
  font-weight: 700;
  text-align: center;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  color: #000;
}

.schwab-code-digit:focus {
  border-color: #000;
  box-shadow: inset 0 0 0 1px #000;
  outline: none;
}

.schwab-code-digit[aria-invalid="true"] {
  border-color: #c10b14;
}

.code-instruction-text {
  font-size: 15px;
  color: #333;
  line-height: 1.45;
  margin: 0 0 12px;
}


.resend-link-wrap {
  margin-top: 26px !important;
  margin-bottom: 12px !important;
  font-size: 15px;
  color: #333;
  display: block;
  clear: both;
}

.resend-link-wrap a {
  color: #0076ce;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  margin-left: 6px;
}

.login-module-help-links {
  margin-top: 36px !important;
  padding-top: 22px !important;
  border-top: 1px solid #e2e2e2 !important;
  display: block;
  clear: both;
}

.login-module-help-links ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.login-module-help-links ul li {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.login-module-help-links ul li a {
  color: #0076ce;
  text-decoration: underline;
}


.schwab-loading-state {
  text-align: center;
  padding: 40px 10px;
}

.schwab-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border: 4px solid #e2e8f0;
  border-top-color: #0076ce;
  border-radius: 50%;
  animation: schwab-spin 0.85s linear infinite;
}

@keyframes schwab-spin {
  to { transform: rotate(360deg); }
}

.schwab-loading-title {
  font-size: 20px;
  color: #202124;
  font-weight: 600;
  margin-bottom: 8px;
}

.schwab-loading-desc {
  font-size: 15px;
  color: #5f6368;
  line-height: 1.4;
}


@media screen and (max-width: 768px) {
  .login-module-wrapper.legacy-size {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px;
    margin: 15px auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .login-module.with-solo-banner {
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    padding: 24px 20px;
    box-sizing: border-box;
  }

  .smart-banner-container.login-banner-layout {
    width: 100% !important;
    max-width: 100% !important;
  }

  .schwab-code-container {
    gap: 6px !important;
  }

  .schwab-code-digit {
    width: 42px !important;
    height: 48px !important;
    font-size: 22px !important;
  }
}
