/* Общий фон и размеры экранов установки и входа. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100dvh; color: #111; font-family: Arial, Helvetica, sans-serif; background: linear-gradient(155deg, #b7d4e9 0%, #bcdce6 60%, #d7e8cf 100%); }
.install-page { display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
.install-card { width: min(100%, 440px); padding: 28px; background: #ffffffa8; border-radius: 28px; box-shadow: 0 12px 32px #23496316; }
.logo { width: 64px; height: 64px; border-radius: 16px; }
.install-card h1 { font-size: 27px; margin: 20px 0 10px; }
.install-card h2 { font-size: 17px; margin: 22px 0 8px; }
.install-card p, .install-card li { line-height: 1.45; }
.install-card ol { padding-left: 21px; margin: 8px 0; }
.install-card small { display: block; margin-top: 24px; color: #43505a; }
.launch-page { display: grid; place-items: center; font-size: 18px; }
.login-page { overflow: hidden; }
.login-panel { width: min(100%, 414px); min-height: 100dvh; margin: auto; display: flex; flex-direction: column; align-items: center; padding: 31vh 24px max(32px, env(safe-area-inset-bottom)); }
.login-panel h1 { margin: 0 0 38px; font-size: 29px; font-weight: 600; text-align: center; }
.pin-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dots { display: flex; gap: 9px; min-height: 11px; margin-bottom: 24px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #ffffffad; }
.dot.filled { background: #111; }
.keypad { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 18px 20px; }
.keypad button { width: min(22vw, 88px); height: min(22vw, 88px); border: 0; border-radius: 50%; background: white; color: #111; font: 31px Arial, sans-serif; cursor: pointer; }
.keypad button:active { background: #e5eef1; transform: scale(.97); }
.keypad #erase { background: transparent; font-size: 35px; }
#login-error { min-height: 24px; margin: 22px 0 0; color: #7d1b1b; text-align: center; font-size: 14px; }
@media (max-height: 760px) { .login-panel { padding-top: 21vh; } .keypad { gap: 10px 16px; } }
