/* Shared authentication layout; colors follow the site's saved theme. */
body.bare { background: var(--zh-bg); }
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); }
.zh-auth-story { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px,4.4vw,72px); background: radial-gradient(circle at 18% 40%,var(--zh-color-primary-subtle),transparent 65%),var(--zh-bg-elevated); border-right: 1px solid var(--zh-border); }
.zh-auth-brand .logo-mark { width: 48px; height: 48px; }
.zh-auth-brand .brand-text b { font-size: 1.2rem; }
.zh-auth-brand .brand-text small { letter-spacing: .12em; }
.zh-auth-story-content { max-width: 480px; width: 100%; margin: auto; }
.zh-auth-kicker { display: block; color: var(--zh-color-primary-text); font-size: .8rem; font-weight: 600; letter-spacing: .12em; margin-bottom: 16px; }
.zh-auth-story h2 { font-size: clamp(2.4rem,3.5vw,3.6rem); font-weight: 650; line-height: 1.3; letter-spacing: -.04em; margin: 0; color: var(--zh-text); text-wrap: balance; }
.zh-auth-intro { margin: 20px 0 28px; color: var(--zh-text-secondary); font-size: .95rem; line-height: 1.9; }
.zh-auth-demo { padding: 22px 24px; border: 1px solid var(--zh-border); border-radius: 20px; background: var(--zh-bg); box-shadow: 0 12px 32px color-mix(in srgb,var(--zh-text) 4%,transparent); }
.zh-auth-demo-head { display: flex; align-items: center; justify-content: space-between; color: var(--zh-text-secondary); font-size: .78rem; }
.zh-auth-demo-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.zh-auth-demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--zh-color-primary); }
.zh-auth-demo > strong { display: flex; align-items: baseline; gap: 16px; font-size: 2rem; font-weight: 600; margin: 20px 0; letter-spacing: -.03em; }
.zh-auth-demo > strong > span { font-size: 1.1rem; font-weight: 400; color: var(--zh-text-secondary); letter-spacing: normal; }
.zh-auth-languages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 16px; border-top: 1px solid var(--zh-border); gap: 12px; font-size: .9rem; }
.zh-auth-languages small { display: block; font-size: .7rem; color: var(--zh-text-tertiary); margin-bottom: 6px; }
.zh-auth-modules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; padding: 0; list-style: none; margin: 30px 0 0; }
.zh-auth-modules li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 600; }
.zh-auth-modules li > svg,.zh-auth-modules li > i { flex-shrink: 0; margin-top: 2px; color: var(--zh-color-primary-text); }
.zh-auth-modules small { display: block; font-size: .75rem; color: var(--zh-text-secondary); font-weight: 400; line-height: 1.6; margin-top: 4px; }
.zh-auth-story-foot { margin: 0; color: var(--zh-text-tertiary); font-size: .75rem; }
.auth-panel { display: grid; place-items: center; padding: 48px 32px; min-width: 0; }
.auth-card { width: 100%; max-width: 388px; min-width: 0; }
.auth-card .m-brand { display: none; }
.zh-auth-mobile-slogan { display: none; }
.auth-card h1 { margin: 0 0 12px; font-size: 2rem; letter-spacing: -.04em; font-weight: 650; }
.auth-card .sub { margin: 0 0 32px; font-size: .9rem; line-height: 1.8; color: var(--zh-text-secondary); text-wrap: pretty; }
.auth-card .zh-field + .zh-field { margin-top: 20px; }
.auth-card .zh-field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.auth-card .zh-input { height: 48px; width: 100%; box-sizing: border-box; min-width: 0; font-size: 1rem; border-radius: 12px; }
.auth-card .zh-btn { min-height: 48px; white-space: normal; line-height: 1.5; border-radius: 12px; transition: background .2s,border-color .2s; }
.auth-card .zh-btn.primary { width: 100%; margin-top: 24px; font-size: .95rem; gap: 12px; }
.auth-card .zh-alert { margin-bottom: 24px; overflow-wrap: anywhere; }
.auth-card .alt { padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--zh-border); text-align: center; color: var(--zh-text-secondary); font-size: .85rem; }
.auth-card .alt a { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-weight: 600; }
.zh-auth-sso { display: grid; gap: 12px; }
.auth-card .btn-oa,.auth-card .btn-dingtalk { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-size: .95rem; font-weight: 600; }
.auth-card .btn-oa { background: var(--zh-bg-elevated); color: var(--zh-text); border-color: var(--zh-border); }
.auth-card .btn-oa:hover { background: var(--zh-color-primary-subtle); }
.auth-card .btn-dingtalk { color: #fff; background: #246fbc; border-color: #246fbc; }
.auth-card .btn-dingtalk:hover { background: #1d5c9d; border-color: #1d5c9d; color: #fff; }
.auth-card .btn-dingtalk > svg:last-child { margin-left: auto; }
.auth-card .btn-dingtalk > svg:first-child { margin-right: auto; }
.zh-auth-sso-note { margin: 0; font-size: .75rem; line-height: 1.7; color: var(--zh-text-secondary); text-align: center; }
.login-or { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: var(--zh-text-tertiary); font-size: .75rem; }
.login-or::before,.login-or::after { content: ''; flex: 1; border-top: 1px solid var(--zh-border); }
.zh-auth-help { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .75rem; color: var(--zh-text-secondary); margin: 24px 0 0; line-height: 1.6; }
.zh-auth-help > svg { flex-shrink: 0; }
.auth-card a:focus-visible,.auth-card button:focus-visible { outline: 2px solid var(--zh-color-primary-text); outline-offset: 4px; }
@media (min-width: 861px) and (max-height: 820px) {
  .zh-auth-story { padding: 28px 40px; gap: 24px; }
  .zh-auth-story h2 { font-size: clamp(2.2rem,3.2vw,3rem); }
  .zh-auth-intro { margin: 16px 0 20px; }
  .zh-auth-demo { padding: 18px 22px; }
  .zh-auth-demo > strong { margin: 14px 0; font-size: 1.7rem; }
  .zh-auth-modules { margin-top: 24px; gap: 18px; }
  .auth-panel { padding: 24px 32px; }
  .auth-card .zh-auth-kicker { margin-bottom: 10px; }
  .auth-card .sub { margin-bottom: 20px; }
  .login-or { margin: 20px 0; }
  .auth-card .zh-field + .zh-field { margin-top: 16px; }
  .auth-card .zh-btn.primary { margin-top: 20px; }
  .auth-card .alt { margin-top: 20px; padding-top: 20px; }
  .zh-auth-help { margin-top: 16px; }
}
@media (max-width: 1000px) and (min-width: 861px) {
  .zh-auth-story { padding: 32px; }
  .zh-auth-modules { gap: 20px 12px; }
  .zh-auth-modules small { font-size: .7rem; }
}
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: minmax(0,1fr); }
  .zh-auth-story { display: none; }
  .auth-panel { min-height: 100dvh; box-sizing: border-box; padding: 36px 24px; background: radial-gradient(ellipse at 20% 0,var(--zh-color-primary-subtle),transparent 58%),var(--zh-bg); }
  .auth-card .m-brand { display: inline-flex; margin-bottom: 40px; }
  .auth-card .m-brand .logo-mark { width: 46px; height: 46px; }
  .zh-auth-mobile-slogan { display: block; font-size: 1.2rem; line-height: 1.6; font-weight: 600; color: var(--zh-color-primary-text); margin: -16px 0 28px; text-wrap: balance; }
  .zh-auth-login > .zh-auth-kicker { display: none; }
  .auth-card h1 { font-size: 1.8rem; }
}
@media (max-width: 380px) {
  .auth-panel { padding: 28px 20px; }
  .auth-card .m-brand { margin-bottom: 28px; }
  .auth-card .sub { margin-bottom: 24px; }
  .login-or { margin: 24px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .zh-auth-story-content,.auth-card { animation: zh-auth-enter .4s ease-out both; }
  @keyframes zh-auth-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

/* ZhaoUI marketing hierarchy, scoped to login so registration keeps its layout. */
.zh-auth-marketing .auth-shell { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); }
.zh-auth-marketing .zh-auth-story { padding: 36px clamp(32px,4.7vw,80px); gap: 36px; background: radial-gradient(ellipse at 12% 18%,var(--zh-color-primary-subtle),transparent 74%),var(--zh-bg-elevated); }
.zh-auth-marketing .zh-auth-brand .logo-mark { width: 44px; height: 44px; }
.zh-auth-marketing .zh-auth-brand .brand-text b { font-size: 1.12rem; }
.zh-auth-marketing .zh-auth-story-content { max-width: 500px; }
.zh-auth-marketing .zh-auth-eyebrow { display: flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .1em; margin-bottom: 18px; }
.zh-auth-marketing .zh-auth-eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.zh-auth-marketing .zh-auth-display { font-size: clamp(2.15rem,3.15vw,3.25rem); font-weight: 700; line-height: 1.38; letter-spacing: -.045em; text-wrap: initial; }
.zh-auth-display em { font-style: normal; color: var(--zh-color-primary-text); }
.zh-auth-marketing .zh-auth-intro { font-size: .93rem; line-height: 1.85; margin: 18px 0 28px; }
.zh-auth-marketing .zh-auth-demo { padding: 22px 24px; border-radius: 18px; border-color: color-mix(in srgb,var(--zh-color-primary) 24%,var(--zh-border)); box-shadow: 0 8px 24px color-mix(in srgb,var(--zh-text) 3%,transparent); }
.zh-auth-marketing .zh-auth-demo-head { gap: 16px; }
.zh-auth-marketing .zh-auth-demo-head > span:first-child { color: var(--zh-color-primary-text); font-weight: 600; }
.zh-auth-sample-label { font-size: .7rem; color: var(--zh-text-tertiary); }
.zh-auth-word { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; }
.zh-auth-word > strong { font-size: 2rem; line-height: 1.2; letter-spacing: -.03em; font-weight: 650; }
.zh-auth-word > span { color: var(--zh-text-secondary); font-size: 1rem; }
.zh-auth-word .zh-auth-word-mark { margin-left: auto; align-self: center; color: var(--zh-color-primary-text); opacity: .5; }
.zh-auth-marketing .zh-auth-languages { font-size: 1.15rem; padding-top: 0; border-top: 0; }
.zh-auth-marketing .zh-auth-languages small { margin-bottom: 6px; font-size: .7rem; }
.zh-auth-marketing .zh-auth-modules { margin-top: 26px; gap: 22px 16px; }
.zh-auth-marketing .zh-auth-modules li { align-items: center; gap: 12px; font-size: .85rem; }
.zh-auth-marketing .zh-auth-modules small { font-size: .73rem; margin-top: 3px; }
.zh-auth-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 10px; color: var(--zh-color-primary-text); background: color-mix(in srgb,var(--zh-color-primary) 10%,var(--zh-bg)); }
.zh-auth-marketing .zh-auth-story-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .7rem; }
.zh-auth-marketing .auth-panel { padding: 44px clamp(28px,4.2vw,72px); }
.zh-auth-marketing .auth-card { max-width: 380px; }
.zh-auth-marketing .auth-card h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 28px; }
.zh-auth-marketing .auth-card .sub { margin-bottom: 28px; }
.zh-auth-marketing .auth-card .zh-input { border-radius: 10px; }
.zh-auth-marketing .auth-card .zh-btn { border-radius: 10px; }
.zh-auth-marketing .auth-card .alt { margin-top: 24px; padding-top: 22px; }
.zh-auth-marketing .zh-auth-help { margin-top: 20px; }
@media (min-width: 861px) and (max-height: 760px) {
  .zh-auth-marketing .zh-auth-story { padding-block: 24px; gap: 24px; }
  .zh-auth-marketing .zh-auth-display { font-size: clamp(2rem,2.8vw,2.65rem); }
  .zh-auth-marketing .zh-auth-intro { margin: 12px 0 20px; }
  .zh-auth-marketing .zh-auth-demo { padding: 18px 22px; }
  .zh-auth-word { padding-block: 14px; }
  .zh-auth-marketing .zh-auth-modules { margin-top: 20px; gap: 16px; }
  .zh-auth-marketing .auth-panel { padding-block: 24px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .zh-auth-marketing .zh-auth-story { padding-inline: 28px; }
  .zh-auth-marketing .zh-auth-display { font-size: 2.1rem; }
  .zh-auth-marketing .zh-auth-modules li { gap: 8px; }
  .zh-auth-marketing .zh-auth-modules small { font-size: .68rem; }
  .zh-auth-marketing .zh-auth-story-foot > span:last-child { display: none; }
  .zh-auth-sample-label { font-size: .65rem; }
}
@media (max-width: 860px) {
  .zh-auth-marketing .auth-shell { grid-template-columns: minmax(0,1fr); }
  .zh-auth-marketing .auth-panel { padding: max(32px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); }
  .zh-auth-marketing .auth-card { max-width: 400px; }
  .zh-auth-marketing .auth-card .m-brand { margin-bottom: 32px; }
  .zh-auth-marketing .zh-auth-mobile-slogan { font-size: 1.22rem; margin: -6px 0 28px; line-height: 1.6; }
  .zh-auth-marketing .zh-auth-login > .zh-auth-kicker { display: none; }
  .zh-auth-marketing .auth-card h1 { font-size: 1.75rem; }
}
