/* Painted balance (24 October), shared with account actions. The bottom
   padding and language gap compensate the logo's transparent glow and the
   select's internal space, measured once per breakpoint; the ink inside the
   two adjacent 44px hit areas is offset, since a negative language margin
   would overlap their targets. */
.login-card { padding-block:20px 8px; }
.login-card > .login-lang { display:flex; width:max-content; max-width:100%; margin:2px auto 0; }
@media (min-width:601px), (min-height:701px) {
  .login-card > .login-lang { margin-top:6.5px; }
}
@media (min-width:601px) {
  .login-card { padding-bottom:10px; }
  .login-card > .login-lang { margin-top:6px; }
}
.login-first .login-link { padding-block:14px 8px; }
.login-lang select { padding-block:1px 10px; }
.login-lang svg { transform:translateY(-4.5px); }
/* The visible row follows the selected label, not the widest option. Keep
   the real select over the whole row so the globe and chevron also open the
   native picker, including on touch devices, without a scripted click. */
.login-lang { position:relative; }
.login-lang select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.login-lang #loginLanguageValue { display:flex; align-items:center; min-height:44px; padding-block:1px 10px; color:var(--text-main); }
.login-lang svg, .login-lang #loginLanguageValue { pointer-events:none; }
.login-lang:focus-within { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.login-card .login-btn { min-height:44px; }
@media (max-width:600px) {
  .login { min-height:100dvh; align-items:center; }
  .login-wrapper { padding-block:1rem; }
}
/* The promise-to-form rhythm is independent of address-bar height. */
@media (max-width:600px) {
  .login-card .login-intro { margin-bottom:var(--page-title-gap); }
  .login-card .portal-form { gap:calc(var(--page-title-gap) / 2); }
}
