/* Shared customer login. All interface styles are scoped to qcl classes. */

.qcl-page,
.qcl-surface,
.qcl-header-login {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.qcl-page,
.qcl-page *,
.qcl-surface,
.qcl-surface *,
.qcl-header-login {
  box-sizing: border-box;
}

.qcl-surface [hidden] {
  display: none !important;
}

.site-header .qcl-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #175fb5;
  border-radius: 10px;
  background: #175fb5;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .qcl-header-login:hover {
  border-color: #124e96;
  background: #124e96;
  color: #fff;
}

.qcl-header-row > .site-nav {
  min-width: 0;
}

@media (min-width: 901px) {
  .qcl-header-row {
    display: flex;
    align-items: center;
    column-gap: 12px;
  }

  .qcl-header-row > .site-nav {
    flex: 1 1 auto;
  }

  .qcl-header-row > .site-nav .nav-list {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .qcl-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .qcl-header-row > .brand {
    order: 0;
    flex: 1 1 100px;
    min-width: 0;
  }

  .qcl-header-row > .brand .brand-mark,
  .qcl-header-row > .brand img {
    max-width: 100%;
  }

  .qcl-header-row > .qcl-header-login {
    order: 1;
    gap: 6px;
    padding: 10px 11px;
    font-size: 14px;
  }

  .qcl-header-row > .nav-toggle {
    order: 2;
    margin-left: 0;
  }

  .qcl-header-row > .site-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }
}

.qcl-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #f3f6fa;
  color: #18283c;
  font-size: 16px;
  line-height: 1.5;
}

.qcl-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 32px;
}

.qcl-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #18283c;
  text-decoration: none;
}

.qcl-brand strong {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.35px;
}

.qcl-brand span {
  color: #607085;
  font-size: 13px;
}

.qcl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #42556e;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.qcl-back-link:hover {
  color: #175fb5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qcl-main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 30px 24px 64px;
}

.qcl-card {
  width: 100%;
  max-width: 500px;
  padding: 36px;
  border: 1px solid #dde5ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(24, 40, 60, .055);
}

.qcl-card--choices {
  max-width: 580px;
}

.qcl-page-footer {
  padding: 0 20px 26px;
  color: #68778a;
  font-size: 12px;
  text-align: center;
}

.qcl-surface {
  color: #18283c;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.qcl-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 23px;
  border: 1px solid #d9e6f6;
  border-radius: 14px;
  background: #eef5fe;
  color: #175fb5;
}

.qcl-surface .qcl-title {
  margin: 0 0 12px;
  padding: 0;
  color: #18283c;
  font-family: inherit;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.6px;
  line-height: 1.2;
  text-align: left;
}

.qcl-surface .qcl-description {
  margin: 0 0 28px;
  padding: 0;
  color: #5a687c;
  font-size: 15px;
  line-height: 1.55;
}

.qcl-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}

.qcl-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.qcl-field label {
  display: block;
  margin: 0;
  color: #26394e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.qcl-surface .qcl-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #bcc9d8;
  border-radius: 9px;
  background: #fff;
  color: #18283c;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.qcl-surface .qcl-input:focus {
  border-color: #175fb5;
  outline: 3px solid #dceafe;
  outline-offset: 1px;
}

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

.qcl-password-field .qcl-input {
  padding-right: 53px;
}

.qcl-password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #53667e;
  cursor: pointer;
}

.qcl-password-toggle:hover {
  background: #edf3fa;
  color: #175fb5;
}

.qcl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.qcl-button--primary {
  border-color: #175fb5;
  background: #175fb5;
  color: #fff;
}

.qcl-button--primary:hover:not(:disabled) {
  border-color: #124e96;
  background: #124e96;
}

.qcl-surface button:disabled {
  cursor: wait;
  opacity: .65;
}

.qcl-help {
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid #e8edf3;
  color: #5a687c;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.qcl-help a,
.qcl-fallback a,
.qcl-recovery-link,
.qcl-recovery-back {
  color: #175fb5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qcl-recovery-link,
.qcl-recovery-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

.qcl-recovery-link {
  align-self: flex-end;
  margin: -16px 0 -14px;
  text-align: right;
}

.qcl-recovery-back {
  justify-content: center;
  width: 100%;
}

.qcl-recovery-note {
  margin: 20px 0 12px;
  color: #5a687c;
  font-size: 13px;
  line-height: 1.6;
}

.qcl-notice {
  margin: -4px 0 23px;
  padding: 12px 14px;
  border: 1px solid #eccac5;
  border-radius: 9px;
  background: #fff5f3;
  color: #8b3028;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.qcl-notice--success {
  margin-top: 20px;
  border-color: #bdd8cb;
  background: #f1f8f4;
  color: #275941;
}

.qcl-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qcl-choice-form,
.qcl-reset-form {
  margin: 0;
}

.qcl-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 92px;
  margin: 0;
  padding: 18px 19px;
  border: 1px solid #cfdbe9;
  border-radius: 12px;
  background: #fff;
  color: #18283c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.qcl-choice:hover:not(:disabled) {
  border-color: #175fb5;
  background: #f5f9ff;
}

.qcl-choice-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qcl-choice-title {
  color: #183d70;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.qcl-choice-description {
  color: #5a687c;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.qcl-choice-arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef5fe;
  color: #175fb5;
}

.qcl-reset-form {
  margin-top: 18px;
  text-align: center;
}

.qcl-text-button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #425c7c;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.qcl-text-button:hover {
  color: #175fb5;
}

.qcl-dialog {
  position: fixed;
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #d7e1ed;
  border-radius: 20px;
  background: #fff;
  color: #18283c;
  box-shadow: 0 20px 80px rgba(12, 24, 43, .23);
  overflow: auto;
  overscroll-behavior: contain;
}

.qcl-dialog:not([open]) {
  display: none;
}

.qcl-dialog::backdrop {
  background: rgba(14, 26, 44, .58);
}

.qcl-dialog-content {
  position: relative;
  padding: 34px;
}

.qcl-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #627188;
  cursor: pointer;
}

.qcl-close:hover {
  background: #edf3fa;
  color: #18283c;
}

.qcl-status {
  margin: -8px 0 19px;
  color: #5a687c;
  font-size: 13px;
  line-height: 1.5;
}

.qcl-status--error {
  color: #8b3028;
}

.qcl-fallback {
  margin: -8px 0 23px;
  font-size: 14px;
}

.qcl-page a:focus-visible,
.qcl-page button:focus-visible,
.qcl-surface a:focus-visible,
.qcl-surface button:focus-visible,
.qcl-header-login:focus-visible {
  outline: 3px solid #80b5f4;
  outline-offset: 3px;
}

html.qcl-modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .qcl-page-header {
    gap: 16px;
    padding: 22px 20px;
  }

  .qcl-brand strong {
    font-size: 18px;
  }

  .qcl-back-link {
    max-width: 140px;
    font-size: 12px;
  }

  .qcl-back-link svg {
    flex: 0 0 auto;
  }

  .qcl-main {
    align-items: flex-start;
    padding: 20px 16px 40px;
  }

  .qcl-card,
  .qcl-dialog-content {
    padding: 28px 24px;
  }

  .qcl-card,
  .qcl-dialog {
    border-radius: 16px;
  }

  .qcl-surface .qcl-title {
    font-size: 25px;
  }

  .qcl-choice {
    gap: 12px;
    padding: 16px;
  }

  .qcl-choice-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .qcl-button,
  .qcl-choice,
  .qcl-header-login {
    transition: background-color .12s ease, border-color .12s ease;
  }
}
