/* B2 (#118, build 29 feedback) — minimal sign-in screen.
   Before: the panel filled 742 of 844 px on an iPhone 13 and had to scroll on an iPhone SE (667 px).
   Only the SIGN-IN view is affected (#auth-login visible): register, legal, recovery and "opening your budget"
   keep their layout. Nothing changes in auth logic, fields, labels, autocomplete or order; colours stay the
   palettes' own (light, dark, Ember, Neon, Clay). */
.auth-gate:has(#auth-login:not([hidden])){align-items:center}
.auth-panel:has(#auth-login:not([hidden])){
  width:min(372px,100%);padding:20px 20px 14px;border-radius:26px;max-height:none}
/* Brand: the lockup alone says it; the tagline repeats the title below it. */
.auth-panel:has(#auth-login:not([hidden])) .auth-brand{margin:2px 0 0;gap:0}
.auth-panel:has(#auth-login:not([hidden])) .auth-brand .lockup{width:150px}
.auth-panel:has(#auth-login:not([hidden])) .auth-tagline{display:none}
.auth-panel:has(#auth-login:not([hidden])) .auth-globe{top:12px;right:12px}
.auth-panel:has(#auth-login:not([hidden])) .auth-globe>summary{padding:5px 9px}
/* One title, no second sentence saying the same thing. */
#auth-login>h2{font-size:20px;margin:14px 0 2px;text-align:center}
#auth-login>h2+p{display:none}
#auth-login form label{margin:10px 0 4px}
/* 16 px keeps iOS from zooming into the field on focus; 44 px is the touch minimum. */
#auth-login input:not([type=checkbox]){min-height:44px;padding:10px 13px;font-size:16px}
#auth-login label.auth-remember{margin:10px 0 0}
#auth-login .auth-primary{margin-top:12px;min-height:46px;font-size:15px}
#auth-login .auth-or{margin:10px 0}
#auth-login .auth-google{min-height:44px}
#auth-login .auth-google+.auth-google{margin-top:8px}
#auth-login .auth-buttons{margin-top:6px;gap:4px}
#auth-login .auth-buttons button{min-height:44px;font-size:13px}
/* Short screens (iPhone SE and landscape): tighten once more instead of scrolling. */
@media (max-height:700px){
  .auth-panel:has(#auth-login:not([hidden])){padding:16px 18px 10px}
  .auth-panel:has(#auth-login:not([hidden])) .auth-brand .lockup{width:132px}
  #auth-login>h2{margin:10px 0 0;font-size:19px}
  #auth-login form label{margin:8px 0 3px}
  #auth-login .auth-or{margin:8px 0}
}
/* The two links stay on one line; the legal footer stays (links to Privacy / Terms) but in one compact block. */
#auth-login .auth-buttons{flex-wrap:nowrap}
#auth-login .auth-buttons button{white-space:nowrap;padding:6px 4px}
.auth-panel:has(#auth-login:not([hidden])) .auth-foot{font-size:12px;line-height:1.5;margin-top:8px;opacity:1}
