/* 45 秒登录／注册独立任务页。仅由 index.html 加载，并由 index-auth.js 在认证面板可见时启用。 */
html.auth-page-active:not([data-entry="admin"]) {
  min-height: 100%;
  background: var(--paper);
}

html.auth-page-active:not([data-entry="admin"]) body {
  min-width: 320px;
  min-height: 100svh;
  background: var(--paper);
}

html.auth-page-active:not([data-entry="admin"]) #app {
  display: block !important;
  width: 100%;
  min-height: 100svh;
  padding: 0 !important;
  background: var(--paper);
}

html.auth-page-active:not([data-entry="admin"]) .sidebar,
html.auth-page-active:not([data-entry="admin"]) .workspace-topbar,
html.auth-page-active:not([data-entry="admin"]) .workspace-mobile-nav,
html.auth-page-active:not([data-entry="admin"]) .mobile-nav-drawer,
html.auth-page-active:not([data-entry="admin"]) #pageMap,
html.auth-page-active:not([data-entry="admin"]) #nextActionPanel {
  display: none !important;
}

html.auth-page-active:not([data-entry="admin"]) main {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 40px 24px;
  background: var(--paper);
}

html.auth-page-active:not([data-entry="admin"]) #authPanel:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: min(100%, 560px);
  min-height: 0;
  margin: auto;
  padding: 0;
  background: transparent;
  animation: none;
}

html.auth-page-active:not([data-entry="admin"]) .auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0 auto;
  color: var(--ink);
}

html.auth-page-active:not([data-entry="admin"]) .auth-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 18px rgba(182, 35, 35, .16);
}

html.auth-page-active:not([data-entry="admin"]) .auth-brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html.auth-page-active:not([data-entry="admin"]) .auth-brand-copy strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 750;
}

html.auth-page-active:not([data-entry="admin"]) .auth-brand-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card {
  width: 100%;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(61, 47, 31, .08);
}

html.auth-page-active:not([data-entry="admin"]) .auth-card > h2,
html.auth-page-active:not([data-entry="admin"]) .auth-register-panel > h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card > p,
html.auth-page-active:not([data-entry="admin"]) .auth-register-panel > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

html.auth-page-active:not([data-entry="admin"]) .auth-fields,
html.auth-page-active:not([data-entry="admin"]) .auth-register-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  box-shadow: none;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card input::placeholder {
  color: #92918b;
  opacity: 1;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(182, 35, 35, .12);
  outline-offset: 1px;
}

html.auth-page-active:not([data-entry="admin"]) .auth-actions,
html.auth-page-active:not([data-entry="admin"]) .auth-register-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 20px;
}

html.auth-page-active:not([data-entry="admin"]) #loginBtn,
html.auth-page-active:not([data-entry="admin"]) #registerBtn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

html.auth-page-active:not([data-entry="admin"]) .auth-card > .auth-oauth-entry {
  margin: 14px 0 0;
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-entry a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #bfe5d0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fffa 0%, #eefaf3 100%);
  color: #147a4b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(21, 122, 75, .08);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-entry a:hover {
  border-color: #8cc9a7;
  background: linear-gradient(180deg, #fafffc 0%, #e7f7ed 100%);
  box-shadow: 0 8px 18px rgba(21, 122, 75, .13);
  transform: translateY(-1px);
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-entry a:focus-visible {
  outline: 3px solid rgba(21, 122, 75, .2);
  outline-offset: 2px;
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #1aad70;
  box-shadow: 0 3px 8px rgba(26, 173, 112, .22);
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon::before,
html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon::after,
html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon span {
  position: absolute;
  display: block;
  content: "";
  border-radius: 50%;
  background: #fff;
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon::before {
  width: 11px;
  height: 8px;
  transform: translate(-2px, -1px);
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon::after {
  width: 8px;
  height: 6px;
  transform: translate(4px, 3px);
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-icon span {
  width: 3px;
  height: 3px;
  transform: translate(-2px, -1px);
  box-shadow: 5px 0 #1aad70;
  z-index: 1;
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-label {
  flex: 0 1 auto;
}

html.auth-page-active:not([data-entry="admin"]) .auth-oauth-arrow {
  margin-left: auto;
  color: #5aa37b;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

html.auth-page-active:not([data-entry="admin"]) #showRegisterBtn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  box-shadow: none;
}

html.auth-page-active:not([data-entry="admin"]) #showRegisterBtn:hover {
  color: var(--brand-dark);
  transform: none;
}

html.auth-page-active:not([data-entry="admin"]) .auth-register-panel {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.auth-page-active:not([data-entry="admin"]) .auth-register-panel > p {
  margin-bottom: 20px;
}

html.auth-page-active:not([data-entry="admin"]) .auth-register-fields {
  gap: 13px;
}

html.auth-page-active:not([data-entry="admin"]) .auth-sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: end;
  gap: 10px;
  margin-top: 13px;
}

html.auth-page-active:not([data-entry="admin"]) #sendRegisterCodeBtn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}

html.auth-page-active:not([data-entry="admin"]) .auth-invite-field {
  margin-top: 13px !important;
}

html.auth-page-active:not([data-entry="admin"]) .auth-invite-field input {
  background: var(--panel-soft);
}

html.auth-page-active:not([data-entry="admin"]) .auth-register-actions {
  margin-top: 18px;
}

html.auth-page-active:not([data-entry="admin"]) .team-invite-landing {
  margin: 0 0 18px;
  padding: 14px;
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: none;
}

html.auth-page-active:not([data-entry="admin"]) #inviteNotice {
  margin: 0 0 16px;
}

html.auth-page-active:not([data-entry="admin"]) #authPanel.is-register .auth-card > h2,
html.auth-page-active:not([data-entry="admin"]) #authPanel.is-register .auth-card > p,
html.auth-page-active:not([data-entry="admin"]) #authPanel.is-register #authLoginFields,
html.auth-page-active:not([data-entry="admin"]) #authPanel.is-register #authLoginActions {
  display: none;
}

html.auth-page-active:not([data-entry="admin"]) #authPanel.is-register #showRegisterBtn {
  margin-top: 18px;
}

@media (max-width: 760px) {
  html.auth-page-active:not([data-entry="admin"]) #app {
    min-height: 100svh;
    padding-bottom: 0 !important;
  }

  html.auth-page-active:not([data-entry="admin"]) main {
    min-height: 100svh;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  html.auth-page-active:not([data-entry="admin"]) #authPanel:not(.hidden) {
    width: min(100%, 440px);
    gap: 18px;
  }

  html.auth-page-active:not([data-entry="admin"]) .auth-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  html.auth-page-active:not([data-entry="admin"]) .auth-card > h2,
  html.auth-page-active:not([data-entry="admin"]) .auth-register-panel > h2 {
    font-size: 23px;
  }

  html.auth-page-active:not([data-entry="admin"]) .auth-card > p,
  html.auth-page-active:not([data-entry="admin"]) .auth-register-panel > p {
    margin-bottom: 20px;
    font-size: 13px;
  }

  html.auth-page-active:not([data-entry="admin"]) .auth-sms-row {
    grid-template-columns: minmax(0, 1fr) 114px;
    gap: 8px;
  }

  html.auth-page-active:not([data-entry="admin"]) #sendRegisterCodeBtn {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }
}

@media (max-width: 359px) {
  html.auth-page-active:not([data-entry="admin"]) main {
    padding-right: 12px;
    padding-left: 12px;
  }

  html.auth-page-active:not([data-entry="admin"]) .auth-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  html.auth-page-active:not([data-entry="admin"]) .auth-sms-row {
    grid-template-columns: minmax(0, 1fr) 106px;
  }
}
