:root { --primary: #1f2937; --accent: #0ea5e9; --line: #d9e0e8; --muted: #64748b; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #1f2937; background: #f4f6f8; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 24px 108px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 18px 60px rgba(15,23,42,.08); }
.mark { width: 58px; height: 58px; border-radius: 8px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
h1 { margin: 8px 0 4px; font-size: 26px; }
p { color: var(--muted); margin: 0; line-height: 1.5; }
label { display: grid; gap: 6px; font-weight: 700; }
input { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; }
.password-mask { -webkit-text-security: disc; }
button { border: 0; border-radius: 8px; background: var(--primary); color: #fff; padding: 12px; font-weight: 800; cursor: pointer; }
a { color: var(--accent); text-decoration: none; font-weight: 700; }
.flash { padding: 12px; border-radius: 8px; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash.success { background: #e8f7ee; color: #15803d; border-color: #b7e4c7; }
.auth-install-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(15,23,42,.14); backdrop-filter: blur(10px); }
.auth-install-copy { display: grid; gap: 4px; min-width: 0; }
.auth-install-copy strong { font-size: 14px; }
.auth-install-copy span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.auth-install-button { width: auto; white-space: nowrap; flex-shrink: 0; }
.auth-install-button[hidden],
.auth-install-bar[hidden] { display: none !important; }

@media (max-width: 520px) {
  .auth-page { padding: 18px 18px 128px; }
  .login-card { padding: 24px 20px; }
  .auth-install-bar { left: 12px; right: 12px; bottom: 12px; display: grid; }
  .auth-install-button { width: 100%; }
}
