.login-view {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 48px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: auto;
  border-top: 1px solid rgba(31, 122, 90, 0.1);
  padding: 18px 12px 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

body.is-community-tab .site-footer {
  display: none;
}

/* Capture and food capture are focused tools, not document pages.  Hide the
   global filing/footer block while either mode is visible. */
.capture-view:not(.hidden) ~ .site-footer {
  display: none;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a[data-filing-link][aria-disabled="true"],
.site-footer a[data-filing-link][aria-disabled="true"]:hover,
.site-footer a[data-filing-link][aria-disabled="true"]:focus-visible {
  color: inherit;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.footer-policy-link {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.footer-policy-link:hover:not(:disabled),
.footer-policy-link:focus-visible {
  background: transparent;
  color: var(--primary-strong);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

.footer-policy-link:active:not(:disabled) {
  background: transparent;
  color: var(--primary-strong);
  box-shadow: none;
  transform: none;
}

html[data-theme^="glass-"] .footer-policy-link,
html[data-theme^="glass-"] .footer-policy-link:hover:not(:disabled),
html[data-theme^="glass-"] .footer-policy-link:focus-visible,
html[data-theme^="glass-"] .footer-policy-link:active:not(:disabled) {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

html[data-theme^="glass-"] .footer-policy-link:hover:not(:disabled),
html[data-theme^="glass-"] .footer-policy-link:focus-visible,
html[data-theme^="glass-"] .footer-policy-link:active:not(:disabled) {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-copy h1,
.topbar h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 820;
}

.login-panel,
.history-section {
  border: 1px solid rgba(31, 122, 90, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 28px;
}

.qq-only-login-panel {
  position: relative;
  min-height: 190px;
  display: grid;
  align-items: center;
}

.login-options {
  display: grid;
  gap: 10px;
  align-self: center;
}

.login-row,
.record-row,
.control-row {
  display: flex;
  gap: 10px;
}

.login-row input,
.record-row input {
  flex: 1 1 auto;
}

.record-row button {
  flex: 0 0 auto;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

#loginMessage {
  grid-column: 2;
  justify-self: center;
  width: min(100%, 420px);
  min-height: 28px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

#loginMessage:empty {
  visibility: hidden;
}

.capture-message {
  margin-top: 10px;
}

.form-message.error {
  color: #ba392b;
}

.form-message.success {
  color: var(--primary-strong);
}

.apple-login-entry,
.huawei-login-entry,
.qq-login-entry {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(18, 150, 219, 0.2);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  background-clip: padding-box;
  color: #176cae;
  text-decoration: none;
  font-size: 13px;
  font-weight: 780;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.apple-login-entry {
  border-color: rgba(17, 24, 32, 0.18);
  background: #111820;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.12);
}

.huawei-login-entry {
  border-color: rgba(217, 25, 53, 0.22);
  color: #c5172e;
  background: #fff;
  box-shadow: 0 10px 24px rgba(217, 25, 53, 0.08);
}

.passkey-login-entry,
.test-login-entry {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(31, 122, 90, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  background-clip: padding-box;
  color: var(--primary-strong);
  box-shadow: none;
  font-size: 13px;
  font-weight: 780;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.test-login-entry {
  border-color: rgba(120, 107, 83, 0.18);
  color: #75664b;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.apple-login-entry:hover:not(:disabled),
.apple-login-entry:focus-visible,
.huawei-login-entry:hover:not(:disabled),
.huawei-login-entry:focus-visible,
.qq-login-entry:hover,
.qq-login-entry:focus-visible,
.passkey-login-entry:hover:not(:disabled),
.passkey-login-entry:focus-visible,
.test-login-entry:hover:not(:disabled),
.test-login-entry:focus-visible {
  border-color: rgba(18, 150, 219, 0.42);
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 150, 219, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.apple-login-entry:hover:not(:disabled),
.apple-login-entry:focus-visible {
  border-color: rgba(17, 24, 32, 0.3);
  background: #17202a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 32, 0.16);
}

.huawei-login-entry:hover:not(:disabled),
.huawei-login-entry:focus-visible {
  border-color: rgba(217, 25, 53, 0.36);
  background: #fff;
  color: #b81127;
  box-shadow: 0 12px 28px rgba(217, 25, 53, 0.12);
}

.passkey-login-entry:hover:not(:disabled),
.passkey-login-entry:focus-visible {
  border-color: rgba(31, 122, 90, 0.34);
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 10px 24px rgba(31, 122, 90, 0.1);
}

.test-login-entry:hover:not(:disabled),
.test-login-entry:focus-visible {
  border-color: rgba(120, 107, 83, 0.34);
  color: #695838;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(120, 107, 83, 0.11);
}

.apple-login-entry:active:not(:disabled),
.huawei-login-entry:active:not(:disabled),
.qq-login-entry:active,
.passkey-login-entry:active:not(:disabled),
.test-login-entry:active:not(:disabled) {
  border-color: rgba(18, 150, 219, 0.36);
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 150, 219, 0.1);
  transform: translateY(0) scale(0.985);
}

.apple-login-entry:active:not(:disabled) {
  border-color: rgba(17, 24, 32, 0.28);
  background: #111820;
  color: #fff;
  box-shadow: 0 5px 14px rgba(17, 24, 32, 0.12);
}

.passkey-login-entry:active:not(:disabled) {
  border-color: rgba(31, 122, 90, 0.28);
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 5px 14px rgba(31, 122, 90, 0.08);
}

.test-login-entry:active:not(:disabled) {
  border-color: rgba(120, 107, 83, 0.3);
  color: #695838;
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 5px 14px rgba(120, 107, 83, 0.08);
}

.apple-login-entry:focus:not(:focus-visible),
.huawei-login-entry:focus:not(:focus-visible),
.qq-login-entry:focus:not(:focus-visible),
.passkey-login-entry:focus:not(:focus-visible),
.test-login-entry:focus:not(:focus-visible),
.passkey-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible),
.test-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible) {
  background: #fff;
  box-shadow: none;
  outline: none;
  transform: none;
}

.apple-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible) {
  background: #111820;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.12);
}

.test-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible) {
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.huawei-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible),
.huawei-login-entry:focus:not(:focus-visible) {
  background: #fff;
  color: #c5172e;
  box-shadow: 0 10px 24px rgba(217, 25, 53, 0.08);
}

.apple-login-entry:focus:not(:focus-visible) {
  background: #111820;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.12);
}

.apple-login-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.apple-login-mark svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.huawei-login-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.huawei-login-mark img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}

.qq-login-mark {
  width: 24px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.qq-login-mark img {
  width: 24px;
  height: 29px;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.account-binding-icon.qq-login-mark {
  width: 38px;
  height: 38px;
}

.account-binding-icon.huawei-login-mark {
  color: #d91935;
  border-color: rgba(217, 25, 53, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.account-binding-icon.huawei-login-mark img {
  width: 28px;
  height: 28px;
}

.passkey-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.passkey-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

html[data-theme^="glass-"] .login-options .apple-login-entry,
html[data-theme^="glass-"] .login-options .apple-login-entry:visited,
html[data-theme^="glass-"] .login-options .apple-login-entry:focus,
html[data-theme^="glass-"] .login-options .apple-login-entry:focus-visible,
html[data-theme^="glass-"] .login-options .apple-login-entry:hover:not(:disabled) {
  border-color: rgba(17, 24, 32, 0.28);
  background: linear-gradient(180deg, #151d26, #0f171f);
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  outline: none;
}

html[data-theme^="glass-"] .login-options .apple-login-entry:active:not(:disabled) {
  border-color: rgba(17, 24, 32, 0.34);
  background: linear-gradient(180deg, #0f171f, #0b1118);
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 32, 0.16), inset 0 1px 6px rgba(0, 0, 0, 0.16);
  transform: translateY(0) scale(0.985);
}

html[data-theme^="glass-"] .login-options .qq-login-entry,
html[data-theme^="glass-"] .login-options .qq-login-entry:visited,
html[data-theme^="glass-"] .login-options .qq-login-entry:focus,
html[data-theme^="glass-"] .login-options .qq-login-entry:focus-visible,
html[data-theme^="glass-"] .login-options .qq-login-entry:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    radial-gradient(120% 110% at 100% 0%, rgba(188, 244, 255, 0.3), rgba(255, 255, 255, 0) 58%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 9px 24px rgba(81, 107, 126, 0.1);
  outline: none;
}

html[data-theme^="glass-"] .login-options .passkey-login-entry,
html[data-theme^="glass-"] .login-options .passkey-login-entry:focus,
html[data-theme^="glass-"] .login-options .passkey-login-entry:focus-visible,
html[data-theme^="glass-"] .login-options .passkey-login-entry:hover:not(:disabled),
html[data-theme^="glass-"] .login-options .passkey-login-entry[aria-busy="true"] {
  border-color: rgba(78, 171, 190, 0.3);
  background:
    linear-gradient(145deg, rgba(244, 253, 255, 0.9), rgba(227, 247, 252, 0.68)),
    radial-gradient(120% 110% at 0% 0%, rgba(126, 219, 236, 0.28), rgba(255, 255, 255, 0) 58%);
  color: #327f8e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 9px 24px rgba(78, 171, 190, 0.1);
  outline: none;
}

html[data-theme^="glass-"] .login-options .huawei-login-entry,
html[data-theme^="glass-"] .login-options .huawei-login-entry:focus,
html[data-theme^="glass-"] .login-options .huawei-login-entry:focus-visible,
html[data-theme^="glass-"] .login-options .huawei-login-entry:hover:not(:disabled) {
  border-color: rgba(217, 25, 53, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 250, 251, 0.92), rgba(255, 235, 239, 0.72)),
    radial-gradient(120% 110% at 0% 0%, rgba(255, 163, 179, 0.24), rgba(255, 255, 255, 0) 58%);
  color: #c5172e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 9px 24px rgba(217, 25, 53, 0.08);
  outline: none;
}

html[data-theme^="glass-"] .login-options .passkey-login-entry .passkey-icon {
  color: #4aa6b7;
}

html[data-theme^="glass-"] .login-options .qq-login-entry:active,
html[data-theme^="glass-"] .login-options .huawei-login-entry:active:not(:disabled),
html[data-theme^="glass-"] .login-options .passkey-login-entry:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  box-shadow: inset 0 1px 8px rgba(117, 144, 160, 0.12), 0 5px 14px rgba(81, 107, 126, 0.1);
  transform: translateY(0) scale(0.985);
}

@media (prefers-color-scheme: dark) {
  html[data-theme^="glass-"] .login-options .apple-login-entry,
  html[data-theme^="glass-"] .login-options .apple-login-entry:visited,
  html[data-theme^="glass-"] .login-options .apple-login-entry:focus,
  html[data-theme^="glass-"] .login-options .apple-login-entry:focus-visible,
  html[data-theme^="glass-"] .login-options .apple-login-entry:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.48);
    background:
      linear-gradient(145deg, rgba(14, 22, 32, 0.9), rgba(9, 15, 23, 0.72)),
      radial-gradient(120% 110% at 100% 0%, rgba(255, 255, 255, 0.08), rgba(9, 15, 23, 0) 58%);
    color: #f8fbff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    outline: none;
  }

  html[data-theme^="glass-"] .login-options .apple-login-entry:active:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.38);
    background: linear-gradient(180deg, #0d151f, #080e16);
    color: #f8fbff;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18), inset 0 1px 6px rgba(0, 0, 0, 0.22);
  }

  html[data-theme^="glass-"] .login-options .qq-login-entry,
  html[data-theme^="glass-"] .login-options .qq-login-entry:visited,
  html[data-theme^="glass-"] .login-options .qq-login-entry:focus,
  html[data-theme^="glass-"] .login-options .qq-login-entry:focus-visible,
  html[data-theme^="glass-"] .login-options .qq-login-entry:hover,
  html[data-theme^="glass-"] .login-options .huawei-login-entry,
  html[data-theme^="glass-"] .login-options .huawei-login-entry:focus,
  html[data-theme^="glass-"] .login-options .huawei-login-entry:focus-visible,
  html[data-theme^="glass-"] .login-options .huawei-login-entry:hover:not(:disabled),
  html[data-theme^="glass-"] .login-options .passkey-login-entry,
  html[data-theme^="glass-"] .login-options .passkey-login-entry:focus,
  html[data-theme^="glass-"] .login-options .passkey-login-entry:focus-visible,
  html[data-theme^="glass-"] .login-options .passkey-login-entry:hover:not(:disabled),
  html[data-theme^="glass-"] .login-options .passkey-login-entry[aria-busy="true"] {
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(145deg, rgba(36, 50, 65, 0.76), rgba(21, 31, 43, 0.56)),
      radial-gradient(120% 110% at 100% 0%, rgba(111, 207, 226, 0.14), rgba(21, 31, 43, 0) 58%);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
    outline: none;
  }

  html[data-theme^="glass-"] .login-options .huawei-login-entry .huawei-login-mark {
    color: #ff7b90;
  }

  html[data-theme^="glass-"] .login-options .passkey-login-entry .passkey-icon {
    color: #97edf7;
  }

  html[data-theme^="glass-"] .login-options .qq-login-entry:active,
  html[data-theme^="glass-"] .login-options .huawei-login-entry:active:not(:disabled),
  html[data-theme^="glass-"] .login-options .passkey-login-entry:active:not(:disabled) {
    background: rgba(26, 39, 53, 0.82);
    color: var(--ink);
    box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.16), 0 6px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(0) scale(0.985);
  }

  html[data-theme^="glass-"] .login-options .qq-login-entry:not(:hover):not(:active):not(:focus-visible),
  html[data-theme^="glass-"] .login-options .qq-login-entry:focus:not(:focus-visible),
  html[data-theme^="glass-"] .login-options .huawei-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible),
  html[data-theme^="glass-"] .login-options .huawei-login-entry:focus:not(:focus-visible),
  html[data-theme^="glass-"] .login-options .passkey-login-entry:not(:disabled):not(:hover):not(:active):not(:focus-visible),
  html[data-theme^="glass-"] .login-options .passkey-login-entry:focus:not(:focus-visible) {
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(145deg, rgba(36, 50, 65, 0.76), rgba(21, 31, 43, 0.56)),
      radial-gradient(120% 110% at 100% 0%, rgba(111, 207, 226, 0.14), rgba(21, 31, 43, 0) 58%);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.18);
    outline: none;
    transform: none;
  }
}
