/* Compact Office sign-in in the ChinaAuction24 brand (graphite + red, the light
   tokens of the member sign-in); intentionally independent from its split layout
   and theme toggle. */
:root {
  color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #14151a; background: #f4f4f5 linear-gradient(160deg, #fbf4f4 0%, #f4f4f5 52%, #f6ecec 100%) no-repeat;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; display: flex; align-items: center; justify-content: center; }
.office-login { width: 400px; max-width: 100%; padding: 36px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(20, 21, 26, .06), 0 12px 32px rgba(20, 21, 26, .06); }
.office-login-header { text-align: center; margin-bottom: 32px; }
/* Brand mark: the member sign-in's "np" rounded square (graphite on light). */
.office-login-badge { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 11px; background: #14151a; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
h1 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: #14151a; }
h1 em { font-style: normal; color: #d12b2b; }
.office-login-subtitle { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #6b6b72; }
.office-login-field { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #3f3f46; font-size: 13px; font-weight: 500; }
input { display: block; width: 100%; min-width: 0; height: 44px; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; color: #14151a; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #71717a; opacity: 1; }
input:hover { border-color: #a1a1aa; }
input:focus, input:focus-visible { outline: none; border-color: #d12b2b; box-shadow: 0 0 0 3px rgba(209, 43, 43, .2); }
button { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.office-login-primary { border: 1px solid #d12b2b; background: #d12b2b; color: #fff; box-shadow: 0 1px 2px rgba(209, 43, 43, .2); }
.office-login-primary:hover { background: #b02222; border-color: #b02222; }
.office-login-secondary { border: 1px solid #d4d4d8; background: #fff; color: #3f3f46; }
.office-login-secondary:hover { border-color: #a1a1aa; background: #fafafa; color: #14151a; }
button:focus-visible { outline: 2px solid #d12b2b; outline-offset: 3px; }
.office-login-error:focus { outline: none; border-color: #f87171; box-shadow: 0 0 0 3px rgba(209, 43, 43, .2); }
button:disabled { cursor: wait; opacity: .7; }
.office-login-error { margin-bottom: 20px; padding: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.office-login-code { letter-spacing: .25em; }
.office-login-help { margin: 12px 0; color: #6b6b72; font-size: 13px; line-height: 1.6; }
.office-login-retry { margin-top: 24px; padding-top: 4px; border-top: 1px solid #e4e4e7; }
.office-login-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 420px) { .office-login { padding: 28px 24px; } }
@media (max-height: 640px) { body { align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { input, button { transition: none; } }

/* Icon-inside fields (Ant Design style Office sign-in): prefix icon, placeholder
   instead of a visible label, eye toggle on password. Scoped to
   .office-login-control so the OTP code field (plain, labelled) is untouched. */
.office-login-sronly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.office-login-control { position: relative; display: flex; align-items: center; }
.office-login-control-icon { position: absolute; left: 13px; width: 16px; height: 16px; color: #71717a; pointer-events: none; }
.office-login-control input { padding-left: 38px; }
.office-login-control:focus-within .office-login-control-icon { color: #d12b2b; }
.office-login-control:has(.office-login-reveal) input { padding-right: 44px; }
.office-login-reveal { position: absolute; right: 5px; width: 34px; height: 34px; min-height: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #71717a; border-radius: 7px; cursor: pointer; }
.office-login-reveal:hover { color: #3f3f46; background: #f4f4f5; }
.office-login-reveal:focus-visible { outline: none; color: #b02222; box-shadow: 0 0 0 2px #d12b2b; }
.office-login-reveal svg { width: 18px; height: 18px; }
.office-login-reveal-off { display: none; }
.office-login-reveal[aria-pressed="true"] .office-login-reveal-on { display: none; }
.office-login-reveal[aria-pressed="true"] .office-login-reveal-off { display: block; }
