*{box-sizing:border-box}body{font-family:Arial,sans-serif;background:#f6f7fb;color:#18203a;margin:0;padding:24px}main{max-width:620px;margin:40px auto;background:#fff;padding:32px;border-radius:18px;box-shadow:0 6px 30px #18203a10}h1{font-size:26px}h2{font-size:20px;margin-top:34px}form{display:grid;gap:16px;margin-bottom:22px}label{display:grid;gap:8px;font-size:16px}input,select,textarea{font:inherit;padding:12px;border:1px solid #c8ccda;border-radius:8px;max-width:100%;width:100%}input[type=checkbox]{width:auto;justify-self:start}button{font:inherit;padding:13px;border:0;border-radius:8px;background:#2a4ce2;color:white;cursor:pointer}button:disabled{opacity:.5}a{color:#2a4ce2}p{line-height:1.7;overflow-wrap:anywhere}#auth-message{color:#293f9d}textarea{direction:ltr;min-height:90px}@media(max-width:520px){body{padding:12px}main{padding:22px;margin:20px auto}}
input[type=email],input[type=password]{direction:ltr;text-align:left}
.password-login{margin-top:22px}.password-login summary{cursor:pointer;color:#2a4ce2;margin-bottom:18px}

/* Desktop manager: distinguish section headings from compact action buttons. */
@media(min-width:769px){
  main:has(#tenant-form) h1{font-size:32px;line-height:1.25;margin:0 0 18px;font-weight:700}
  main:has(#tenant-form) h2{font-size:25px;line-height:1.35;font-weight:700;margin:0 0 20px;padding:0;border:0}
  main:has(#tenant-form) button{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:fit-content;max-width:100%;min-height:40px;padding:10px 18px;font-size:15px;line-height:1.4}
}

/* A separator sits midway between complete manager sections. */
main:has(#tenant-form) .manager-section + .manager-section{margin-top:28px;padding-top:28px;border-top:1px solid #e3e6ef}
main:has(#tenant-form) .manager-section h2{margin:0 0 20px;padding:0;border:0}
main:has(#tenant-form) .manager-section > :last-child{margin-bottom:0}
main:has(#tenant-form) button{display:flex;justify-content:center;justify-self:end;width:fit-content;max-width:100%;margin-inline-start:auto}
#tenant-list .tenant-summary{margin:6px 0;line-height:1.5}
#tenant-list button{margin-top:8px;margin-bottom:8px}
.tenant-status[data-status=active]{color:#188044;font-weight:700}
.tenant-status[data-status=pending]{color:#cf6262;font-weight:700}


/* Keep authentication footer actions on separate RTL rows on every screen size. */
main > a{display:block;width:fit-content;max-width:100%;margin-block:24px 0;overflow-wrap:anywhere}
main > #install-app{display:flex;width:fit-content;max-width:100%;margin-block-start:24px;margin-inline-start:0;margin-inline-end:auto}
