/* Auth-экраны: mobile-first, tap-зоны ≥48px, CSS-переменные */
.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 16px; }
.auth-card, .verify-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 400px; box-shadow: var(--shadow); }
.auth-card h2, .verify-card h3 { margin-bottom: 16px; text-align: center; }
.auth-card input, .verify-card input:not(.code-digit) { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); font-size: 1rem; }
.btn-primary { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; min-height: 48px; transition: background 0.2s; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-text { background: none; border: none; color: var(--accent); cursor: pointer; padding: 8px; min-height: 48px; font-size: 0.9rem; }
.btn-text:disabled { color: var(--text-secondary); cursor: not-allowed; }
.error-msg { color: var(--danger); font-size: 0.85rem; min-height: 20px; margin: 8px 0; text-align: center; }
.hint { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 16px; text-align: center; line-height: 1.4; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 16px; cursor: pointer; }
.auth-link { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-link a { color: var(--accent); text-decoration: none; }

/* Overlay */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 500; backdrop-filter: blur(4px); }
.overlay.hidden { display: none; }
.code-inputs { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.code-digit { width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700; border: 2px solid var(--border); border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); }
.code-digit:focus { border-color: var(--accent); outline: none; }
.code-digit.error { border-color: var(--danger); animation: shake 0.3s; }
.attempts-info { text-align: center; font-size: 0.8rem; color: var(--text-secondary); margin-top: 8px; min-height: 18px; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }