/* Đăng nhập: một cột giữa màn hình, nút lớn ở nửa dưới (dễ bấm một tay) */
.app:has(.login) .scroll { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.login {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  max-width: 420px; width: 100%; margin: 0 auto; text-align: center;
}
.login-art { width: 132px; height: 132px; animation: bob 3.2s ease-in-out infinite; }
.login h1 { font-size: calc(28rem / 17); font-weight: 800; line-height: 1.15; }
.login .lead { font-size: calc(16rem / 17); font-weight: 600; line-height: 1.45; color: var(--muted); max-width: 320px; }

.field { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 16px; text-align: left; }
.field span { font-size: calc(14rem / 17); font-weight: 800; color: var(--muted); }
.field input {
  border: 0; outline: none; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--ink);
  font-size: max(16px, calc(18rem / 17)); /* < 16px thì iOS tự zoom khi gõ */
}
.field input::placeholder { color: #8C91A1; font-weight: 700; }
.field:focus-within { box-shadow: 0 0 0 3px var(--orange), var(--lift); }

.login-msg { min-height: 1.4em; font-weight: 700; color: var(--ink); }
.login-msg:empty { visibility: hidden; }
.login-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.login-actions .btn { width: 100%; }
.login-actions .btn:disabled { opacity: .6; }

@media (prefers-reduced-motion: reduce) { .login-art { animation: none; } }

/* Ô tên là type="search" (tránh iOS tự bật passkey): bỏ dáng ô tìm kiếm và nút xóa của trình duyệt. */
.field input[type="search"] { -webkit-appearance: none; appearance: none; }
.field input[type="search"]::-webkit-search-cancel-button,
.field input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
