#demo-login {
  max-width: 480px;
  margin: clamp(20px, 6vw, 52px) auto;
  padding: 24px;
  width: calc(100% - 32px);
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgb(15 23 42 / 8%);
}
#demo-login [hidden] { display: none; }
.login-settings { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.login-settings select { border: 1px solid #cbd5e1; border-radius: 10px; min-height: 44px; padding: 8px; }
.login-form { display: grid; gap: 14px; }
.login-form h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.login-form p { color: #475569; font-size: 14px; }
.login-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.login-control { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 16px; }
.login-phone-field { display: flex; align-items: center; gap: 8px; }
.login-phone-field input { min-width: 0; }
#login-phone-prefix { flex: none; }
button.login-control { text-align: start; background: #f8fafc; }
.login-submit { min-height: 48px; border-radius: 12px; background: #4f46e5; color: white; font-weight: 750; padding: 10px; }
.login-submit:hover { background: #4338ca; }
.login-link { justify-self: center; color: #4338ca; font-size: 13px; font-weight: 650; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
#demo-code-error { color: #9f2323; }
#country-dialog { margin: auto; width: min(440px, calc(100% - 24px)); max-height: 85dvh; border-radius: 18px; padding: 16px; color: #0f172a; }
#country-dialog::backdrop { background: rgb(15 23 42 / 60%); }
.country-dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.country-dialog-title h2 { font-size: 20px; font-weight: 800; }
.country-dialog-title button { min-width: 44px; min-height: 44px; font-size: 24px; }
.country-list { max-height: min(48dvh, 340px); overflow-y: auto; margin-top: 10px; }
.country-list button { display: flex; justify-content: space-between; gap: 12px; text-align: start; width: 100%; padding: 10px; min-height: 44px; border-radius: 8px; }
.country-list button:hover,.country-list button[aria-current=true] { background: #eef2ff; }
.country-list button bdi { flex-shrink: 0; color: #475569; }
