/* Login-only layout. Keep the shared office palette and error page unchanged. */
body.office-auth.office-login { min-width:0; }
.office-auth .auth-layout.login-screen.page {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  min-height:100vh; min-height:100svh; padding:0; background:#fff;
  align-items:stretch; justify-content:normal;
}
.auth-layout .auth-intro {
  position:relative; overflow:hidden; display:flex; flex-direction:column;
  min-width:0; padding:42px clamp(32px,3vw,72px) 38px;
  background:var(--primary-light); color:#172b4d;
}
.auth-layout .auth-intro::after {
  content:""; position:absolute; pointer-events:none; width:530px; height:530px;
  bottom:-390px; left:-180px; border:1px solid rgba(37,99,235,.09); border-radius:50%;
  box-shadow:0 0 0 56px rgba(37,99,235,.025),0 0 0 112px rgba(37,99,235,.018);
}
.office-auth .auth-layout .auth-brand {
  position:relative; z-index:1; flex:none; gap:12px; padding:0; margin:0;
  border:0; font-size:20px; line-height:1.4; letter-spacing:0;
}
.office-auth .auth-layout .auth-brand img {
  width:42px; height:42px; flex:none; padding:5px; border-radius:9px; background:#fff;
}
.auth-layout .auth-intro-content { position:relative; z-index:1; width:100%; max-width:570px; margin:auto 0; padding:64px 0; }
.auth-layout .auth-eyebrow { margin:0 0 22px; font-size:12px; font-weight:400; letter-spacing:3px; color:var(--text-2); }
.auth-layout h1 { margin:0; font-size:clamp(30px,2.15vw,42px); line-height:1.6; font-weight:700; letter-spacing:-.5px; }
.auth-layout .auth-description { margin:24px 0 0; font-size:14px; line-height:1.9; color:#475569; }
.auth-layout .auth-organization { width:100%; max-width:420px; margin-top:52px; font-size:13px; color:#345886; }
.auth-layout .auth-org-root { position:relative; display:flex; align-items:center; justify-content:center; gap:10px; width:144px; height:56px; margin:0 auto; background:#fff; border:1px solid #d8e3f2; border-radius:10px; box-shadow:0 6px 22px rgba(30,64,175,.05); }
.auth-layout .auth-org-root::after { content:""; position:absolute; top:100%; left:50%; height:30px; border-left:1px solid #c3d3e8; }
.auth-layout .auth-org-branches { position:relative; display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:14px; margin-top:51px; }
.auth-layout .auth-org-branches::before { content:""; position:absolute; top:-21px; left:14%; right:14%; border-top:1px solid #c3d3e8; }
.auth-layout .auth-org-node { position:relative; min-width:0; display:flex; align-items:center; justify-content:center; gap:7px; min-height:50px; background:rgba(255,255,255,.66); border:1px solid #d8e3f2; border-radius:8px; white-space:nowrap; }
.auth-layout .auth-org-node::before { content:""; position:absolute; bottom:100%; left:50%; height:21px; border-left:1px solid #c3d3e8; }
.auth-layout .auth-organization svg { width:21px; height:21px; flex:none; }
.auth-layout .auth-intro-footer { position:relative; z-index:1; margin:0; font-size:12px; letter-spacing:1px; color:#56708e; }
.auth-layout .auth-form-panel { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; padding:96px 40px 110px; }
.auth-layout .auth-form-content { width:100%; max-width:360px; }
.auth-layout .auth-form-content .auth-eyebrow { margin-bottom:10px; color:var(--primary); letter-spacing:2px; }
.auth-layout h2 { margin:0 0 36px; color:#172b4d; font-size:28px; line-height:1.5; font-weight:600; letter-spacing:0; }
.office-auth .auth-layout .field { gap:8px; margin:0 0 22px; }
.office-auth .auth-layout .field label { color:#475569; font-size:13px; }
.office-auth .auth-layout .field input { width:100%; min-width:0; height:48px; padding:11px 14px; border:1px solid #d8dfe9; border-radius:6px; font-size:14px; color:var(--text); background:#fff; }
.office-auth .auth-layout .field input::placeholder { color:#8994a5; opacity:1; }
.auth-layout .auth-password { position:relative; }
.office-auth .auth-layout .auth-password input { padding-right:52px; }
.auth-layout .auth-password-toggle { position:absolute; inset:2px 2px 2px auto; display:flex; align-items:center; justify-content:center; width:44px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--text-2); cursor:pointer; }
.auth-layout .auth-password-toggle:hover { color:var(--primary); background:var(--primary-light); }
.auth-layout .auth-password-toggle svg { width:19px; height:19px; }
.auth-layout .auth-eye-closed, .auth-layout .auth-password-toggle[aria-pressed="true"] .auth-eye-open { display:none; }
.auth-layout .auth-password-toggle[aria-pressed="true"] .auth-eye-closed { display:block; }
.office-auth .auth-layout .login-submit { display:flex; justify-content:space-between; width:100%; min-height:48px; margin:6px 0 0; padding:11px 16px; border-radius:6px; font-size:15px; font-weight:500; }
.auth-layout .login-submit svg { width:19px; height:19px; }
.auth-layout .login-hint { margin:20px 0 0; padding:0; border:0; font-size:12px; line-height:1.8; color:var(--text-2); }
.auth-layout .login-err { margin:0 0 22px; padding:11px 14px; border-radius:6px; font-size:13px; font-weight:400; line-height:1.7; overflow-wrap:anywhere; }
.auth-layout .login-success { background:var(--green-bg); color:var(--green); border-color:#bbf7d0; }
.auth-layout .auth-form-footer { position:absolute; bottom:38px; left:24px; right:24px; display:flex; align-items:center; justify-content:center; gap:6px; margin:0; font-size:12px; color:var(--text-2); }
.auth-layout .auth-form-footer svg { width:16px; height:16px; flex:none; }
@media (max-width:1100px) and (min-width:801px) {
  .auth-layout .auth-intro { padding-left:32px; padding-right:32px; }
  .auth-layout .auth-organization { font-size:12px; }
  .auth-layout .auth-org-branches { gap:8px; }
  .auth-layout .auth-org-node { gap:5px; }
  .auth-layout .auth-organization svg { width:18px; height:18px; }
}
@media (max-width:800px) {
  .office-auth .auth-layout.login-screen.page { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .auth-layout .auth-intro { padding:26px 24px; background:#fff; overflow:visible; }
  .auth-layout .auth-intro::after, .auth-layout .auth-intro-content, .auth-layout .auth-intro-footer { display:none; }
  .office-auth .auth-layout .auth-brand { justify-content:center; font-size:19px; }
  .auth-layout .auth-form-panel { padding:48px 24px 88px; justify-content:center; }
  .auth-layout .auth-form-footer { bottom:24px; }
}
@media (max-width:380px) {
  .auth-layout .auth-intro { padding:22px 20px; }
  .office-auth .auth-layout .auth-brand { font-size:18px; gap:8px; }
  .auth-layout .auth-form-panel { padding-left:20px; padding-right:20px; }
  .auth-layout h2 { font-size:26px; }
}
@media (max-height:650px) and (min-width:801px) {
  .auth-layout .auth-intro { padding-top:28px; padding-bottom:26px; }
  .auth-layout .auth-intro-content { padding:40px 0; }
  .auth-layout .auth-organization { margin-top:32px; }
  .auth-layout .auth-form-panel { padding-top:64px; padding-bottom:100px; }
}
