/* Compact Office sign-in; intentionally independent from portal themes. */
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #0f172a; background: #f1f5f9; }
* { 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-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 30px rgba(0,0,0,.04); }
.office-login-header { text-align: center; margin-bottom: 32px; }
.office-login-badge { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 10px; background: linear-gradient(135deg, #d12b2b, #1e40af); color: #fff; font-size: 14px; font-weight: 700; }
h1 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; color: #0f172a; }
.office-login-subtitle { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #94a3b8; }
.office-login-field { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #334155; font-size: 13px; font-weight: 500; }
input { display: block; width: 100%; min-width: 0; height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; }
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; }
.office-login-primary { border: 1px solid #d12b2b; background: #d12b2b; color: #fff; }
.office-login-primary:hover { background: #b02222; border-color: #b02222; }
.office-login-secondary { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
.office-login-secondary:hover { background: #f8fafc; }
input:focus-visible, button:focus-visible, .office-login-error:focus { outline: 3px solid #d12b2b; outline-offset: 3px; }
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: #64748b; font-size: 13px; line-height: 1.6; }
.office-login-retry { margin-top: 24px; }
.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; } }

/* Icon-inside fields, matching the auctionbidder24 Office sign-in (Ant Design):
   prefix icon, placeholder instead of a visible label, eye toggle on password,
   indigo primary (#1e40af) and the antd focus ring. Kept 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: #94a3b8; pointer-events: none; }
.office-login-control input { padding-left: 38px; }
.office-login-control input::placeholder { color: #9aa7b8; }
.office-login-control input:hover { border-color: #93c5fd; }
.office-login-control input:focus, .office-login-control input:focus-visible { outline: none; border-color: #d12b2b; box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); }
.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: #94a3b8; border-radius: 7px; cursor: pointer; }
.office-login-reveal:hover { color: #475569; background: #f1f5f9; }
.office-login-reveal:focus-visible { outline: none; color: #d12b2b; box-shadow: 0 0 0 2px rgba(37, 99, 235, .2); }
.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; }

/* Indigo primary + soft shadow, as in the office theme (colorPrimary #1e40af). */
.office-login-primary { border-color: #1e40af; background: #1e40af; box-shadow: 0 1px 2px rgba(30, 64, 175, .15); }
.office-login-primary:hover { background: #1c3aa0; border-color: #1c3aa0; }
