/* Экран входа — в стиле приложений «Продажи» и «Мастерская»: серый фон, белая карточка без обводок, серые поля, одна тёмная кнопка. */
:root { color-scheme: light; }
html, body { margin: 0; background: #F3F4F6; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: 28px; align-items: center; justify-content: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; color: #111827; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.login-card { width: 100%; max-width: 400px; box-sizing: border-box; background: #fff; border-radius: 22px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); animation: login-in var(--dur-l, .36s) var(--ease-out, cubic-bezier(.2, .8, .2, 1)); }
@keyframes login-in { from { opacity: 0; transform: translateY(10px); } }
/* Щит крупно над карточкой, под ним название. */
.brand { display: flex; flex-direction: column; align-items: center; gap: 3px; animation: login-in var(--dur-l, .36s) var(--ease-out, cubic-bezier(.2, .8, .2, 1)); }
.brand img { width: 72px; height: 72px; display: block; margin-bottom: 11px; }
.brand strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand small { font-size: 13px; color: #63676F; font-weight: 500; }
h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: #111827; }
/* Поле — серое, без обводки; 16px, чтобы iPhone не приближал страницу. */
.field input { height: 48px; box-sizing: border-box; border: 0; border-radius: 12px; background: #F3F4F6; padding: 0 14px; font: inherit; font-size: 16px; color: #111827; outline: none; -webkit-appearance: none; appearance: none; transition: box-shadow var(--dur-s, .16s) var(--ease-out, ease-out); }
.field input:focus { box-shadow: inset 0 0 0 2px #111827; }
.field input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 100px #F3F4F6; -webkit-text-fill-color: #111827; }
.form-error { margin: -4px 0 0; color: #B42318; font-size: 13px; line-height: 1.4; }
.form-error[hidden] { display: none; }
.btn { height: 50px; border: 0; border-radius: 14px; background: #111827; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px; transition: transform var(--dur-s, .16s) var(--ease-out, ease-out), opacity var(--dur-s, .16s) var(--ease-out, ease-out); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.form-note { margin: 0; font-size: 12px; line-height: 1.4; color: #9AA0A8; text-align: center; }
@media (prefers-reduced-motion: reduce) { .login-card, .brand { animation: none; } }
