/* login.css — страницы входа: index.html (номер телефона) и login-code.html (код из сообщения) */
.auth { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; background: var(--side); }
.auth-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 20px; }
.auth-logo { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.auth-tag { color: var(--text-2); font-size: 14px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.auth-title { font: 800 26px/1.2 var(--font-display); letter-spacing: -.4px; }
.auth-sub { color: var(--text-2); margin: 8px 0 22px; }
.phone-field { display: flex; align-items: center; height: 58px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); padding: 0 16px; gap: 12px; margin: 6px 0 16px; }
.phone-field:focus-within { border-color: var(--accent-ink); }
.phone-prefix { font: 600 18px/1 var(--font); padding-right: 12px; border-right: 1px solid var(--line); height: 26px; display: flex; align-items: center; }
.phone-input { border: 0; background: none; font: 500 18px/1 var(--font); color: var(--text); flex: 1; min-width: 0; outline: 0; height: 100%; }
.auth-legal { font-size: 13px; color: var(--text-2); margin-top: 16px; }
.auth-legal a { color: var(--text-2); }
.code-field { position: relative; }
.code-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.code-cell { height: 70px; border-radius: 16px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font: 800 28px/1 var(--font-display); }
.code-field:focus-within .code-cell.is-cur { border: 2px solid var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: text; }
.auth-timer { font-size: 14px; color: var(--text-2); margin: 14px 0; min-height: 20px; }
.hint-card { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.hint-card b { color: var(--text); font-weight: 600; }
.hint-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
/* Пометка «вёрстка с примерными данными» под формой */
.demo-box { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 16px; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 10px; }
.demo-box-title { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--text); }
.demo-box-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .auth-card { padding: 22px; }
}
